Making string const is so important.

Making string const is so important.

If you have a parameter of type string, and you do not modify the string in your routine, make the string parameter a const. For each parameter of type string, this reduces 2 additional calls, one to _UStrAddRef and one to _UStrClr


https://quality.embarcadero.com/browse/RSP-19494

Comments