aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testSplitVector.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-01-02 10:08:16 +1100
committerNeil <nyamatongwe@gmail.com>2024-01-02 10:08:16 +1100
commitec0e53dc6711aeb827eccd65b6f0779aa841aad2 (patch)
tree4cba13cd182aac11f6240cd8520e5b46a0d329bf /test/unit/testSplitVector.cxx
parentdac59d7a985cd4b42096848c02dcc26b55165493 (diff)
downloadscintilla-mirror-ec0e53dc6711aeb827eccd65b6f0779aa841aad2.tar.gz
Fix warnings in test case code mostly by adding const.
Diffstat (limited to 'test/unit/testSplitVector.cxx')
-rw-r--r--test/unit/testSplitVector.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/testSplitVector.cxx b/test/unit/testSplitVector.cxx
index c836a4ffe..b5559a6af 100644
--- a/test/unit/testSplitVector.cxx
+++ b/test/unit/testSplitVector.cxx
@@ -374,7 +374,7 @@ TEST_CASE("SplitVector") {
SECTION("DeleteBackAndForth") {
sv.InsertValue(0, 10, 87);
for (int i=0; i<10; i+=2) {
- int len = 10 - i;
+ const int len = 10 - i;
REQUIRE(len == sv.Length());
for (int j=0; j<sv.Length(); j++) {
REQUIRE(87 == sv.ValueAt(j));