From cda15af9657880e91ccf65603e109b202d9e78bf Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 6 Apr 2017 21:04:37 +1000 Subject: Added const where possible. --- src/SplitVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SplitVector.h') diff --git a/src/SplitVector.h b/src/SplitVector.h index df722530e..1601bfaa6 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -251,7 +251,7 @@ public: // Split into up to 2 ranges, before and after the split then use memcpy on each. int range1Length = 0; if (position < part1Length) { - int part1AfterPosition = part1Length - position; + const int part1AfterPosition = part1Length - position; range1Length = retrieveLength; if (range1Length > part1AfterPosition) range1Length = part1AfterPosition; -- cgit v1.2.3