From b2db6a21fa4125d9b6f870f919b05e7e4f8942b6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Jun 2020 17:07:45 -0400 Subject: [PATCH] CFlagsProperty: Mark HasValidValue() as const This doesn't modify internal state. --- src/Core/Resource/Script/Property/CFlagsProperty.cpp | 2 +- src/Core/Resource/Script/Property/CFlagsProperty.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Resource/Script/Property/CFlagsProperty.cpp b/src/Core/Resource/Script/Property/CFlagsProperty.cpp index bd60f973..cd899a30 100644 --- a/src/Core/Resource/Script/Property/CFlagsProperty.cpp +++ b/src/Core/Resource/Script/Property/CFlagsProperty.cpp @@ -46,7 +46,7 @@ TString CFlagsProperty::ValueAsString(void* pData) const * 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. */ -uint32 CFlagsProperty::HasValidValue(void* pPropertyData) +uint32 CFlagsProperty::HasValidValue(void* pPropertyData) const { if (!mAllFlags) return 0; diff --git a/src/Core/Resource/Script/Property/CFlagsProperty.h b/src/Core/Resource/Script/Property/CFlagsProperty.h index d88bedb9..1c701fef 100644 --- a/src/Core/Resource/Script/Property/CFlagsProperty.h +++ b/src/Core/Resource/Script/Property/CFlagsProperty.h @@ -68,7 +68,7 @@ public: * 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. */ - uint32 HasValidValue(void* pPropertyData); + uint32 HasValidValue(void* pPropertyData) const; }; #endif // CFLAGSPROPERTY_H