aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-08-14 08:11:31 +1000
committerNeil <nyamatongwe@gmail.com>2022-08-14 08:11:31 +1000
commitd3ff72f55ee5a99242b8de4b61088e0764edc159 (patch)
tree6681dc2936e132d0a57a3c9356bab2e025325dba /src/Decoration.h
parenta3ad77a3499097ae3db33d95176458a0ef0dec2b (diff)
downloadscintilla-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.h2
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