diff options
author | Neil <nyamatongwe@gmail.com> | 2019-12-02 09:06:59 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-12-02 09:06:59 +1100 |
commit | c8d7f8df7318a9eeba2e49994618eff0f225494d (patch) | |
tree | 9e80bec9e49481bfa532b83e8f4fb9a2a30f1586 /src/SplitVector.h | |
parent | cf150e2082ff95d8da6f8f74e1d15e1b33ab2e19 (diff) | |
download | scintilla-mirror-c8d7f8df7318a9eeba2e49994618eff0f225494d.tar.gz |
Backport: Use noexcept and const where reasonable.
Backport of changeset 7781:a9b7308f0522.
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r-- | src/SplitVector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index 39895a700..a8f1ed1d9 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -76,11 +76,11 @@ public: ~SplitVector() { } - ptrdiff_t GetGrowSize() const { + ptrdiff_t GetGrowSize() const noexcept { return growSize; } - void SetGrowSize(ptrdiff_t growSize_) { + void SetGrowSize(ptrdiff_t growSize_) noexcept { growSize = growSize_; } @@ -290,7 +290,7 @@ public: std::copy(body.data() + position, body.data() + position + range1Length, buffer); buffer += range1Length; position = position + range1Length + gapLength; - ptrdiff_t range2Length = retrieveLength - range1Length; + const ptrdiff_t range2Length = retrieveLength - range1Length; std::copy(body.data() + position, body.data() + position + range2Length, buffer); } |