diff options
| author | Willyanto Willyanto <[email protected]> | 2023-01-16 23:44:25 +0700 |
|---|---|---|
| committer | Willyanto Willyanto <[email protected]> | 2023-01-16 23:45:56 +0700 |
| commit | 0a0f0c76dbd6d07c1d1287e93e3f4ce947aa7e7a (patch) | |
| tree | 3cb795d3456be5970e27405f16a8bbbb06454056 /src/kitemviews/private/kfileitemmodelsortalgorithm.h | |
| parent | bf0260642b1d7fab8c206de4dfae766d25d6564d (diff) | |
Replace qswap with std::swap
Fixes obsolete function 'qSwap' called. It is recommended to use 'std::swap'
instead. (CWE-477)
Diffstat (limited to 'src/kitemviews/private/kfileitemmodelsortalgorithm.h')
| -rw-r--r-- | src/kitemviews/private/kfileitemmodelsortalgorithm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/private/kfileitemmodelsortalgorithm.h b/src/kitemviews/private/kfileitemmodelsortalgorithm.h index 4ee6095ca..4fe6aa66a 100644 --- a/src/kitemviews/private/kfileitemmodelsortalgorithm.h +++ b/src/kitemviews/private/kfileitemmodelsortalgorithm.h @@ -100,7 +100,7 @@ static void merge(RandomAccessIterator begin, if (len1 + len2 == 2) { if (lessThan(*(begin + 1), *(begin))) { - qSwap(*begin, *(begin + 1)); + std::swap(*begin, *(begin + 1)); } return; } |
