commit 2c0421f00c9744d6cbf4e998eda9014dad93e611
Author: Richard Kimberly Heck <[email protected]>
Date: Wed Sep 11 19:39:03 2019 -0400
Constify
---
src/Text.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 5e06fdc..1fdef6e 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -1370,7 +1370,7 @@ void Text::acceptOrRejectChanges(Cursor & cur, ChangeOp
op)
pos_type endPos = cur.selectionEnd().pos();
// keep selection info, because endPos becomes invalid after the first
loop
- bool endsBeforeEndOfPar = (endPos < pars_[endPit].size());
+ bool const endsBeforeEndOfPar = (endPos < pars_[endPit].size());
// first, accept/reject changes within each individual paragraph (do
not consider end-of-par)
for (pit_type pit = begPit; pit <= endPit; ++pit) {
@@ -1389,8 +1389,8 @@ void Text::acceptOrRejectChanges(Cursor & cur, ChangeOp
op)
if (pit == endPit && endPos == 0)
break; // last iteration anyway
- pos_type left = (pit == begPit ? begPos : 0);
- pos_type right = (pit == endPit ? endPos : parSize);
+ pos_type const left = (pit == begPit ? begPos : 0);
+ pos_type const right = (pit == endPit ? endPos : parSize);
if (left == right)
// there is no change here