Skip to content

Commit

Permalink
Use std::next rather than adding to iterator in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra authored and mgallien committed Dec 10, 2024
1 parent 94ea1c0 commit 18e49b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testchunkingng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 18e49b2

Please sign in to comment.