summaryrefslogtreecommitdiff
path: root/ui/gridView.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
commit8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 (patch)
tree975c6e590c31e56007006a23e7b15d0245d75b08 /ui/gridView.cpp
parent3.6 (diff)
downloadFreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.gz
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.bz2
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.zip
3.7
Diffstat (limited to 'ui/gridView.cpp')
-rw-r--r--ui/gridView.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/gridView.cpp b/ui/gridView.cpp
index 4989db3d..b1ecb9eb 100644
--- a/ui/gridView.cpp
+++ b/ui/gridView.cpp
@@ -270,7 +270,7 @@ void GridView::clearAllRows()
class GridView::SerializeHierarchy
{
public:
- SerializeHierarchy(std::vector<GridView::RefIndex>& sortedRef, unsigned int index) :
+ SerializeHierarchy(std::vector<GridView::RefIndex>& sortedRef, size_t index) :
index_(index),
sortedRef_(sortedRef) {}
@@ -295,7 +295,7 @@ public:
}
private:
- unsigned int index_;
+ size_t index_;
std::vector<GridView::RefIndex>& sortedRef_;
};
@@ -306,11 +306,9 @@ void GridView::setData(FolderComparison& newData)
sortedRef.clear();
folderCmp.swap(newData);
- unsigned int index = 0;
-
//fill sortedRef
for (FolderComparison::const_iterator j = folderCmp.begin(); j != folderCmp.end(); ++j)
- SerializeHierarchy(sortedRef, index++).execute(*j);
+ SerializeHierarchy(sortedRef, j - folderCmp.begin()).execute(*j);
}
bgstack15