|
Unnecessary PChar casting
If you are passing in a string literal as a parameter into a function or procedure that is expecting a PChar, there is no need to cast this literal as a PChar. The same applies for PWideChar.
For example:
FormatPChar(PChar(‘some text’));
Could be written without the casting as:
FormatPChar(‘some text’);
< Back to list of hints and warnings
|