From 47b91df0cadb92f0dbaae441926448308b450ea1 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 23 Feb 2025 11:05:23 +1100 Subject: Silence some warnings in test code. --- test/unit/testSelection.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/testSelection.cxx') diff --git a/test/unit/testSelection.cxx b/test/unit/testSelection.cxx index d708607d2..609feaf00 100644 --- a/test/unit/testSelection.cxx +++ b/test/unit/testSelection.cxx @@ -135,7 +135,7 @@ TEST_CASE("SelectionPosition") { TEST_CASE("SelectionSegment") { SECTION("SelectionSegment") { - SelectionSegment ss; + const SelectionSegment ss; REQUIRE(ss.start == invalid); REQUIRE(ss.end == invalid); } @@ -145,7 +145,7 @@ TEST_CASE("SelectionSegment") { TEST_CASE("SelectionRange") { SECTION("SelectionRange") { - SelectionRange sr; + const SelectionRange sr; REQUIRE(sr.anchor == invalid); REQUIRE(sr.caret == invalid); } -- cgit v1.2.3