summaryrefslogtreecommitdiffstats
path: root/src/library/browse/foldertreemodel.cpp
diff options
context:
space:
mode:
authorRJ Skerry-Ryan <rryan@mixxx.org>2018-10-25 22:39:12 -0700
committerRJ Skerry-Ryan <rryan@mixxx.org>2018-10-26 00:14:38 -0700
commit10ec4cb3d6c5d6a3d7727ef74a16c7c3526ed30f (patch)
tree033cc4304a434c024d3ffde5450ac0d51908ee26 /src/library/browse/foldertreemodel.cpp
parent398b533a847db24ddb6f3d30e1d2964f62308cbf (diff)
Fix some issues identified by clazy.
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();
}