Replace qAsConst with C++17 std::as_const

This commit is contained in:
Jonas Kvinge
2021-08-22 23:26:53 +02:00
parent c076933b52
commit 72d381e9ed
7 changed files with 17 additions and 13 deletions

View File

@@ -24,6 +24,7 @@
#include <memory>
#include <functional>
#include <algorithm>
#include <utility>
#include <QObject>
#include <QtGlobal>
@@ -586,7 +587,7 @@ void CollectionModel::SongsDeleted(const SongList &songs) {
}
// Delete empty dividers
for (const QString &divider_key : qAsConst(divider_keys)) {
for (const QString &divider_key : std::as_const(divider_keys)) {
if (!divider_nodes_.contains(divider_key)) continue;
// Look to see if there are any other items still under this divider