diff options
author | Neil <nyamatongwe@gmail.com> | 2019-03-19 11:52:17 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-03-19 11:52:17 +1100 |
commit | 4ac748ba2238d3abd5227918d8174507d8fa3ec1 (patch) | |
tree | 0a854c5820c299f591e6366ee8d22359e935f9c9 /src/ViewStyle.h | |
parent | 5c9c8f89c962785bcaac84e9a9c22d7976a03784 (diff) | |
download | scintilla-mirror-4ac748ba2238d3abd5227918d8174507d8fa3ec1.tar.gz |
Backport: Make constructors of simple classes noexcept.
Backport of changeset 7324:3432fd2a959b.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 4ef82c393..ba0524d86 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -66,9 +66,9 @@ enum WrapMode { eWrapNone, eWrapWord, eWrapChar, eWrapWhitespace }; class ColourOptional : public ColourDesired { public: bool isSet; - ColourOptional(ColourDesired colour_=ColourDesired(0,0,0), bool isSet_=false) : ColourDesired(colour_), isSet(isSet_) { + ColourOptional(ColourDesired colour_=ColourDesired(0,0,0), bool isSet_=false) noexcept : ColourDesired(colour_), isSet(isSet_) { } - ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(static_cast<int>(lParam)), isSet(wParam != 0) { + ColourOptional(uptr_t wParam, sptr_t lParam) noexcept : ColourDesired(static_cast<int>(lParam)), isSet(wParam != 0) { } }; @@ -80,10 +80,10 @@ struct ForeBackColours { struct EdgeProperties { int column; ColourDesired colour; - EdgeProperties(int column_ = 0, ColourDesired colour_ = ColourDesired(0)) : + EdgeProperties(int column_ = 0, ColourDesired colour_ = ColourDesired(0)) noexcept : column(column_), colour(colour_) { } - EdgeProperties(uptr_t wParam, sptr_t lParam) : + EdgeProperties(uptr_t wParam, sptr_t lParam) noexcept : column(static_cast<int>(wParam)), colour(static_cast<int>(lParam)) { } }; |