summaryrefslogtreecommitdiff
path: root/ui/gridView.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /ui/gridView.cpp
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
Diffstat (limited to 'ui/gridView.cpp')
-rw-r--r--ui/gridView.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gridView.cpp b/ui/gridView.cpp
index 585296a9..4989db3d 100644
--- a/ui/gridView.cpp
+++ b/ui/gridView.cpp
@@ -227,13 +227,13 @@ GridView::StatusSyncPreview GridView::updateSyncPreview(bool hideFiltered, //map
}
-void GridView::getAllFileRef(const std::set<unsigned int>& guiRows, std::vector<FileSystemObject*>& output)
+void GridView::getAllFileRef(const std::set<size_t>& guiRows, std::vector<FileSystemObject*>& output)
{
- std::set<unsigned int>::const_iterator upperEnd = guiRows.lower_bound(rowsOnView()); //loop over valid rows only!
+ std::set<size_t>::const_iterator upperEnd = guiRows.lower_bound(rowsOnView()); //loop over valid rows only!
output.clear();
output.reserve(guiRows.size());
- for (std::set<unsigned int>::const_iterator i = guiRows.begin(); i != upperEnd; ++i)
+ for (std::set<size_t>::const_iterator i = guiRows.begin(); i != upperEnd; ++i)
{
FileSystemObject* fsObj = getReferencedRow(viewRef[*i]);
if (fsObj)
@@ -277,10 +277,10 @@ public:
void execute(const HierarchyObject& hierObj)
{
//add file references
- std::for_each(hierObj.subFiles.begin(), hierObj.subFiles.end(), *this);
+ std::for_each(hierObj.useSubFiles().begin(), hierObj.useSubFiles().end(), *this);
//add dir references
- std::for_each(hierObj.subDirs.begin(), hierObj.subDirs.end(), *this);
+ std::for_each(hierObj.useSubDirs().begin(), hierObj.useSubDirs().end(), *this);
}
void operator()(const FileMapping& fileObj)
bgstack15