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 | 37e58367e8b48e53032f1849de570668811e81fb (patch) | |
tree | da1df333b21ac0d19600ab4c990c539cda30bed3 /src/ViewStyle.h | |
parent | 79299db113ee3a2390235cf2d81b949076d6a4ad (diff) | |
download | scintilla-mirror-37e58367e8b48e53032f1849de570668811e81fb.tar.gz |
Make constructors of simple classes noexcept.
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)) { } }; |