CFlagsProperty: Mark HasValidValue() as const

This doesn't modify internal state.
This commit is contained in:
Lioncash 2020-06-14 17:07:45 -04:00
parent d5a33b631a
commit b2db6a21fa
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ TString CFlagsProperty::ValueAsString(void* pData) const
* Checks whether there are any unrecognized bits toggled on in the property value. * Checks whether there are any unrecognized bits toggled on in the property value.
* Returns the mask of any invalid bits. If all bits are valid, returns 0. * Returns the mask of any invalid bits. If all bits are valid, returns 0.
*/ */
uint32 CFlagsProperty::HasValidValue(void* pPropertyData) uint32 CFlagsProperty::HasValidValue(void* pPropertyData) const
{ {
if (!mAllFlags) if (!mAllFlags)
return 0; return 0;

View File

@ -68,7 +68,7 @@ public:
* Checks whether there are any unrecognized bits toggled on in the property value. * Checks whether there are any unrecognized bits toggled on in the property value.
* Returns the mask of any invalid bits. If all bits are valid, returns 0. * Returns the mask of any invalid bits. If all bits are valid, returns 0.
*/ */
uint32 HasValidValue(void* pPropertyData); uint32 HasValidValue(void* pPropertyData) const;
}; };
#endif // CFLAGSPROPERTY_H #endif // CFLAGSPROPERTY_H