etc.h: Constify methods

This commit is contained in:
Jonas Kulla 2014-08-12 19:41:11 +02:00
parent 9967ae022d
commit 1767b200c7
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ struct Color : public Serializable
double getBlue() const { return blue; }
double getAlpha() const { return alpha; }
bool hasEffect()
bool hasEffect() const
{
return (alpha != 0);
}
@ -112,7 +112,7 @@ struct Tone : public Serializable
double getBlue() const { return blue; }
double getGray() const { return gray; }
bool hasEffect()
bool hasEffect() const
{
return ((int)red != 0 ||
(int)green != 0 ||