diff options
author | Neil <nyamatongwe@gmail.com> | 2022-08-14 08:11:31 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-08-14 08:11:31 +1000 |
commit | d3ff72f55ee5a99242b8de4b61088e0764edc159 (patch) | |
tree | 6681dc2936e132d0a57a3c9356bab2e025325dba /src/Decoration.h | |
parent | a3ad77a3499097ae3db33d95176458a0ef0dec2b (diff) | |
download | scintilla-mirror-d3ff72f55ee5a99242b8de4b61088e0764edc159.tar.gz |
Specify SetCurrentValue as noexcept as that will not change.
Add cast functions to simplify code and avoid warnings.
Diffstat (limited to 'src/Decoration.h')
-rw-r--r-- | src/Decoration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Decoration.h b/src/Decoration.h index c8faafec9..9c47d6c08 100644 --- a/src/Decoration.h +++ b/src/Decoration.h @@ -32,7 +32,7 @@ public: virtual void SetCurrentIndicator(int indicator) = 0; virtual int GetCurrentIndicator() const noexcept = 0; - virtual void SetCurrentValue(int value) = 0; + virtual void SetCurrentValue(int value) noexcept = 0; virtual int GetCurrentValue() const noexcept = 0; // Returns with changed=true if some values may have changed |