Try to make const correct

Top  Previous  Next

User interface > Translation options > Tuning options > Try to make const correct

 

By the tuning option Try to make const correct the generated code can be made more C++-like.

 

Delphi doesn't know the concept of const-correctness. However it is an important concept in C++. If this option is enabled, Delphi2Cpp II makes the getter methods of properties constant as well as the methods which are called inside of these getter methods. In most cases this will work correctly, but, if member variables are changed in such a method, the compiler will produce an error



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content