diff options
author | RJ Skerry-Ryan <rryan@mixxx.org> | 2018-10-25 22:39:12 -0700 |
---|---|---|
committer | RJ Skerry-Ryan <rryan@mixxx.org> | 2018-10-26 00:14:38 -0700 |
commit | 10ec4cb3d6c5d6a3d7727ef74a16c7c3526ed30f (patch) | |
tree | 033cc4304a434c024d3ffde5450ac0d51908ee26 /src/library/browse | |
parent | 398b533a847db24ddb6f3d30e1d2964f62308cbf (diff) |
Fix some issues identified by clazy.
Diffstat (limited to 'src/library/browse')
-rw-r--r-- | src/library/browse/foldertreemodel.cpp | 4 |
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(); } |