aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-06-11 10:08:29 +1000
committerNeil <nyamatongwe@gmail.com>2020-06-11 10:08:29 +1000
commita2931677c6e28aad5ddd56d82e5a8814746dc5fd (patch)
treed8c143a1ebcb4e91717d241c38ec43bf1da9e6ac /src/ViewStyle.h
parentb34e1a6efefd7b39f14daa867510b2e2d453a0bb (diff)
downloadscintilla-mirror-a2931677c6e28aad5ddd56d82e5a8814746dc5fd.tar.gz
Use noexcept where safe and maintainable.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r--src/ViewStyle.h10
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;