diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Partitioning.h | 2 | ||||
-rw-r--r-- | src/SplitVector.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h index 608a3a58c..11c64bc83 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -130,7 +130,7 @@ public: body->SetValueAt(partition, pos); } - void InsertText(T partitionInsert, T delta) { + void InsertText(T partitionInsert, T delta) noexcept { // Point all the partitions after the insertion point further along in the buffer if (stepLength != 0) { if (partitionInsert >= stepPartition) { 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); } |