From 36d69661b2e774d0b4f77a7ed8dcf1d35db9026b Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 5 Dec 2024 15:40:00 +0800 Subject: [PATCH] Use std::next rather than adding to iterator in tests Signed-off-by: Claudio Cambra --- test/testchunkingng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testchunkingng.cpp b/test/testchunkingng.cpp index 87612fab538a1..35d08f02e0b06 100644 --- a/test/testchunkingng.cpp +++ b/test/testchunkingng.cpp @@ -178,7 +178,7 @@ private slots: // Remove the second chunk, so all further chunks will be deleted and resent auto firstChunk = chunkMap.first(); - auto secondChunk = *(chunkMap.begin() + 1); + auto secondChunk = *(std::next(chunkMap.begin())); const auto chunksList = chunkMap.keys().mid(2); for (const auto& name : chunksList) { chunksToDelete.append(name);