OPTI3-Missing "const" for unmodified array parameter

Top  Previous  Next

 

Missing "const" for unmodified array parameter (OPTI3)

 

This is a list of all array parameters that you can declare with the const directive, resulting in better performance since the compiler can assume that the parameter will not be changed.

 

No warning is given for methods that are marked with the "override" directive. This is because they must follow the parameter list that the overridden method has.

 

 

See also:

 

Optimizations