aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
commit6a542f10f35a7f6182335250ac6fb25dbd230cac (patch)
tree8579d35a88cfbb6c8644fc938176c22058e85561 /src/Indicator.h
parent8be8298fd9fadccef7caa8cc4232f53a2f4b91fb (diff)
downloadscintilla-mirror-6a542f10f35a7f6182335250ac6fb25dbd230cac.tar.gz
Declare reading methods as noexcept where reasonable.
Diffstat (limited to 'src/Indicator.h')
-rw-r--r--src/Indicator.h8
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_);