summaryrefslogtreecommitdiff
path: root/src/config/ConfigDataValues.hpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-05-31 15:55:54 +0200
committervaxerski <vaxry@vaxry.net>2023-05-31 15:55:54 +0200
commitfd73a7f795192dd80eb370b43d81c2e6ba150289 (patch)
tree639ced1e455f01974ab6b2b03683ba10a605ee8e /src/config/ConfigDataValues.hpp
parent51a930f802c71a0e67f05e7b176ded74e8e95f87 (diff)
gradient: fix warn
Diffstat (limited to 'src/config/ConfigDataValues.hpp')
-rw-r--r--src/config/ConfigDataValues.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/ConfigDataValues.hpp b/src/config/ConfigDataValues.hpp
index c8195bbf..7a4b5ee8 100644
--- a/src/config/ConfigDataValues.hpp
+++ b/src/config/ConfigDataValues.hpp
@@ -2,8 +2,7 @@
#include "../defines.hpp"
#include <vector>
-enum eConfigValueDataTypes
-{
+enum eConfigValueDataTypes {
CVD_TYPE_INVALID = -1,
CVD_TYPE_GRADIENT = 0
};
@@ -38,7 +37,8 @@ class CGradientValueData : public ICustomConfigValueData {
/* Float corresponding to the angle (rad) */
float m_fAngle = 0;
- bool operator==(const CGradientValueData& other) {
+ //
+ bool operator==(const CGradientValueData& other) const {
if (other.m_vColors.size() != m_vColors.size() || m_fAngle != other.m_fAngle)
return false;