Commit d75d4deb authored by Marius Pa's avatar Marius Pa
Browse files

streaks qSwap is obsolete

Fix cppcheck issue "src/logic/streaks.cpp:119: Obsolete function 'qSwap'
called. It is recommended to use 'std::swap' instead."
parent 1f8b0706
Pipeline #252157 passed with stage
in 3 minutes and 50 seconds
......@@ -116,7 +116,7 @@ Streaks::processStreak(const QVector<StreakPrivate> &map,
for (int i = 0; i < streaks_reversed.size(); i++) {
streaks_reversed[i].begin = l.size() - streaks_reversed[i].begin;
streaks_reversed[i].end = l.size() - streaks_reversed[i].end;
qSwap(streaks_reversed[i].begin, streaks_reversed[i].end);
std::swap(streaks_reversed[i].begin, streaks_reversed[i].end);
}
/* Preliminary checks
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment