summaryrefslogtreecommitdiffstats
path: root/src/library/browse/foldertreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/browse/foldertreemodel.cpp')
-rw-r--r--src/library/browse/foldertreemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/browse/foldertreemodel.cpp b/src/library/browse/foldertreemodel.cpp
index a91cb8eae0..03738bed54 100644
--- a/src/library/browse/foldertreemodel.cpp
+++ b/src/library/browse/foldertreemodel.cpp
@@ -50,8 +50,8 @@ bool FolderTreeModel::hasChildren(const QModelIndex& parent) const {
}
bool FolderTreeModel::directoryHasChildren(const QString& path) const {
- QHash<QString, bool>::const_iterator it = m_directoryCache.find(path);
- if (it != m_directoryCache.end()) {
+ auto it = m_directoryCache.constFind(path);
+ if (it != m_directoryCache.constEnd()) {
return it.value();
}