From 10ec4cb3d6c5d6a3d7727ef74a16c7c3526ed30f Mon Sep 17 00:00:00 2001 From: RJ Skerry-Ryan Date: Thu, 25 Oct 2018 22:39:12 -0700 Subject: Fix some issues identified by clazy. --- src/library/browse/foldertreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/library/browse/foldertreemodel.cpp') 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::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(); } -- cgit v1.2.3