diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-12-16 17:17:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 17:17:31 +0000 |
| commit | 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch) | |
| tree | 64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/config/ConfigDataValues.hpp | |
| parent | 7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff) | |
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/config/ConfigDataValues.hpp')
| -rw-r--r-- | src/config/ConfigDataValues.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/config/ConfigDataValues.hpp b/src/config/ConfigDataValues.hpp index f2ea79a0..e2c7eee3 100644 --- a/src/config/ConfigDataValues.hpp +++ b/src/config/ConfigDataValues.hpp @@ -1,24 +1,26 @@ #pragma once #include "../defines.hpp" +#include <vector> -enum eConfigValueDataTypes { - CVD_TYPE_INVALID = -1, +enum eConfigValueDataTypes +{ + CVD_TYPE_INVALID = -1, CVD_TYPE_GRADIENT = 0 }; interface ICustomConfigValueData { -public: + public: virtual ~ICustomConfigValueData() = 0; virtual eConfigValueDataTypes getDataType() = 0; }; class CGradientValueData : public ICustomConfigValueData { -public: + public: CGradientValueData(CColor col) { m_vColors.push_back(col); }; - virtual ~CGradientValueData() { }; + virtual ~CGradientValueData(){}; virtual eConfigValueDataTypes getDataType() { return CVD_TYPE_GRADIENT; @@ -34,14 +36,15 @@ public: std::vector<CColor> m_vColors; /* Float corresponding to the angle (rad) */ - float m_fAngle = 0; + float m_fAngle = 0; bool operator==(const CGradientValueData& other) { if (other.m_vColors.size() != m_vColors.size() || m_fAngle != other.m_fAngle) return false; for (size_t i = 0; i < m_vColors.size(); ++i) - if (m_vColors[i] != other.m_vColors[i]) return false; + if (m_vColors[i] != other.m_vColors[i]) + return false; return true; } |
