From ecb1524f8da7901338b263384fed3c612f117b4c Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:22:36 +0200 Subject: 5.11 --- ui/grid_view.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ui/grid_view.cpp') diff --git a/ui/grid_view.cpp b/ui/grid_view.cpp index 31172319..dbaff5cd 100644 --- a/ui/grid_view.cpp +++ b/ui/grid_view.cpp @@ -97,14 +97,14 @@ void GridView::updateView(Predicate pred) ptrdiff_t GridView::findRowDirect(FileSystemObject::ObjectIdConst objId) const { - auto iter = rowPositions.find(objId); - return iter != rowPositions.end() ? iter->second : -1; + auto it = rowPositions.find(objId); + return it != rowPositions.end() ? it->second : -1; } ptrdiff_t GridView::findRowFirstChild(const HierarchyObject* hierObj) const { - auto iter = rowPositionsFirstChild.find(hierObj); - return iter != rowPositionsFirstChild.end() ? iter->second : -1; + auto it = rowPositionsFirstChild.find(hierObj); + return it != rowPositionsFirstChild.end() ? it->second : -1; } @@ -344,8 +344,8 @@ void GridView::setData(FolderComparison& folderCmp) !baseObj.getBaseDirPf().empty(); }); - for (auto iter = begin(folderCmp); iter != end(folderCmp); ++iter) - SerializeHierarchy(sortedRef, iter - begin(folderCmp)).execute(*iter); + for (auto it = begin(folderCmp); it != end(folderCmp); ++it) + SerializeHierarchy(sortedRef, it - begin(folderCmp)).execute(*it); } -- cgit