mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 08:31:54 -07:00
gradient: fix warn
This commit is contained in:
@@ -2,8 +2,7 @@
|
|||||||
#include "../defines.hpp"
|
#include "../defines.hpp"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
enum eConfigValueDataTypes
|
enum eConfigValueDataTypes {
|
||||||
{
|
|
||||||
CVD_TYPE_INVALID = -1,
|
CVD_TYPE_INVALID = -1,
|
||||||
CVD_TYPE_GRADIENT = 0
|
CVD_TYPE_GRADIENT = 0
|
||||||
};
|
};
|
||||||
@@ -38,7 +37,8 @@ class CGradientValueData : public ICustomConfigValueData {
|
|||||||
/* Float corresponding to the angle (rad) */
|
/* Float corresponding to the angle (rad) */
|
||||||
float m_fAngle = 0;
|
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)
|
if (other.m_vColors.size() != m_vColors.size() || m_fAngle != other.m_fAngle)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user