From 877def4f243e1ef5eb39a6132f3969844e00be95 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Jun 2020 10:08:29 +1000 Subject: Backport: Use noexcept where safe and maintainable. Backport of changeset 8300:266c8247814e. --- src/ViewStyle.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ViewStyle.h') 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; -- cgit v1.2.3