diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-06-11 10:08:29 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-06-11 10:08:29 +1000 |
| commit | 877def4f243e1ef5eb39a6132f3969844e00be95 (patch) | |
| tree | 5041a5f52f7d38c026d594f53d3fabc813205221 /src/ViewStyle.h | |
| parent | c8136baf0e923ea16cb5e75d75539ca61129925a (diff) | |
| download | scintilla-mirror-877def4f243e1ef5eb39a6132f3969844e00be95.tar.gz | |
Backport: Use noexcept where safe and maintainable.
Backport of changeset 8300:266c8247814e.
Diffstat (limited to 'src/ViewStyle.h')
| -rw-r--r-- | src/ViewStyle.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 7f6853f13..33ea1d6c2 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -170,7 +170,7 @@ public: ViewStyle &operator=(const ViewStyle &) = delete; ViewStyle &operator=(ViewStyle &&) = delete; ~ViewStyle(); - void CalculateMarginWidthAndMask(); + void CalculateMarginWidthAndMask() noexcept; void Init(size_t stylesSize_=256); void Refresh(Surface &surface, int tabInChars); void ReleaseAllExtendedStyles() noexcept; @@ -181,15 +181,15 @@ public: void SetStyleFontName(int styleIndex, const char *name); bool ProtectionActive() const noexcept; int ExternalMarginWidth() const noexcept; - int MarginFromLocation(Point pt) const; + int MarginFromLocation(Point pt) const noexcept; bool ValidStyle(size_t styleIndex) const noexcept; - void CalcLargestMarkerHeight(); + void CalcLargestMarkerHeight() noexcept; int GetFrameWidth() const noexcept; bool IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const noexcept; - ColourOptional Background(int marksOfLine, bool caretActive, bool lineContainsCaret) const; + ColourOptional Background(int marksOfLine, bool caretActive, bool lineContainsCaret) const noexcept; bool SelectionBackgroundDrawn() const noexcept; bool WhitespaceBackgroundDrawn() const noexcept; - ColourDesired WrapColour() const; + ColourDesired WrapColour() const noexcept; bool SetWrapState(int wrapState_) noexcept; bool SetWrapVisualFlags(int wrapVisualFlags_) noexcept; |
