#6
When calling certain functions, allow only certain constants (or combination of those constants) to be passed (e.g. allow only LOCATION_ constants for SetRange, and only CATEGORY_ constants for SetCategory). Magic numbers should be disallowed as well.
#6
When calling certain functions, allow only certain constants (or combination of those constants) to be passed (e.g. allow only LOCATION_ constants for SetRange, and only CATEGORY_ constants for SetCategory). Magic numbers should be disallowed as well.