aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-19 11:52:17 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-19 11:52:17 +1100
commit4ac748ba2238d3abd5227918d8174507d8fa3ec1 (patch)
tree0a854c5820c299f591e6366ee8d22359e935f9c9 /src/Indicator.h
parent5c9c8f89c962785bcaac84e9a9c22d7976a03784 (diff)
downloadscintilla-mirror-4ac748ba2238d3abd5227918d8174507d8fa3ec1.tar.gz
Backport: Make constructors of simple classes noexcept.
Backport of changeset 7324:3432fd2a959b.
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 7e9a00ce3..9e5fda221 100644
--- a/src/Indicator.h
+++ b/src/Indicator.h
@@ -13,9 +13,9 @@ namespace Scintilla {
struct StyleAndColour {
int style;
ColourDesired fore;
- StyleAndColour() : style(INDIC_PLAIN), fore(0, 0, 0) {
+ StyleAndColour() noexcept : style(INDIC_PLAIN), fore(0, 0, 0) {
}
- StyleAndColour(int style_, ColourDesired fore_ = ColourDesired(0, 0, 0)) : style(style_), fore(fore_) {
+ StyleAndColour(int style_, ColourDesired fore_ = ColourDesired(0, 0, 0)) noexcept : style(style_), fore(fore_) {
}
bool operator==(const StyleAndColour &other) const {
return (style == other.style) && (fore == other.fore);
@@ -33,9 +33,9 @@ public:
int fillAlpha;
int outlineAlpha;
int attributes;
- Indicator() : under(false), fillAlpha(30), outlineAlpha(50), attributes(0) {
+ Indicator() noexcept : under(false), fillAlpha(30), outlineAlpha(50), attributes(0) {
}
- Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) :
+ Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) noexcept :
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;