etc.h: Constify methods
This commit is contained in:
parent
9967ae022d
commit
1767b200c7
|
@ -64,7 +64,7 @@ struct Color : public Serializable
|
||||||
double getBlue() const { return blue; }
|
double getBlue() const { return blue; }
|
||||||
double getAlpha() const { return alpha; }
|
double getAlpha() const { return alpha; }
|
||||||
|
|
||||||
bool hasEffect()
|
bool hasEffect() const
|
||||||
{
|
{
|
||||||
return (alpha != 0);
|
return (alpha != 0);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ struct Tone : public Serializable
|
||||||
double getBlue() const { return blue; }
|
double getBlue() const { return blue; }
|
||||||
double getGray() const { return gray; }
|
double getGray() const { return gray; }
|
||||||
|
|
||||||
bool hasEffect()
|
bool hasEffect() const
|
||||||
{
|
{
|
||||||
return ((int)red != 0 ||
|
return ((int)red != 0 ||
|
||||||
(int)green != 0 ||
|
(int)green != 0 ||
|
||||||
|
|
Loading…
Reference in New Issue