diff options
Diffstat (limited to 'src/Indicator.h')
-rw-r--r-- | src/Indicator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Indicator.h b/src/Indicator.h index 9e5fda221..24319df99 100644 --- a/src/Indicator.h +++ b/src/Indicator.h @@ -17,7 +17,7 @@ struct StyleAndColour { } StyleAndColour(int style_, ColourDesired fore_ = ColourDesired(0, 0, 0)) noexcept : style(style_), fore(fore_) { } - bool operator==(const StyleAndColour &other) const { + bool operator==(const StyleAndColour &other) const noexcept { return (style == other.style) && (fore == other.fore); } }; @@ -39,13 +39,13 @@ public: sacNormal(style_, fore_), sacHover(style_, fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_), attributes(0) { } void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, DrawState drawState, int value) const; - bool IsDynamic() const { + bool IsDynamic() const noexcept { return !(sacNormal == sacHover); } - bool OverridesTextFore() const { + bool OverridesTextFore() const noexcept { return sacNormal.style == INDIC_TEXTFORE || sacHover.style == INDIC_TEXTFORE; } - int Flags() const { + int Flags() const noexcept { return attributes; } void SetFlags(int attributes_); |