summaryrefslogtreecommitdiff
path: root/ui/grid_view.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
commit88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 (patch)
treec6c5babb49b90293380106b81ae5c446959ac70f /ui/grid_view.cpp
parent5.3 (diff)
downloadFreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.gz
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.bz2
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.zip
5.4
Diffstat (limited to 'ui/grid_view.cpp')
-rw-r--r--ui/grid_view.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/grid_view.cpp b/ui/grid_view.cpp
index 80ff895c..2162394f 100644
--- a/ui/grid_view.cpp
+++ b/ui/grid_view.cpp
@@ -71,13 +71,14 @@ void GridView::updateView(Predicate pred)
if (pred(*fsObj))
{
//save row position for direct random access to FileMapping or DirMapping
- rowPositions.insert(std::make_pair(ref.objId, viewRef.size())); //costs: 0.28 µs per call - MSVC based on std::set
+ this->rowPositions.insert(std::make_pair(ref.objId, viewRef.size())); //costs: 0.28 µs per call - MSVC based on std::set
+ //"this->" required by two-pass lookup as enforced by GCC 4.7
//save row position to identify first child *on sorted subview* of DirMapping or BaseDirMapping in case latter are filtered out
const HierarchyObject* parent = &(fsObj->parent());
for (;;) //map all yet unassociated parents to this row
{
- const auto rv = rowPositionsFirstChild.insert(std::make_pair(parent, viewRef.size()));
+ const auto rv = this->rowPositionsFirstChild.insert(std::make_pair(parent, viewRef.size()));
if (!rv.second)
break;
@@ -88,7 +89,7 @@ void GridView::updateView(Predicate pred)
}
//build subview
- viewRef.push_back(ref.objId);
+ this->viewRef.push_back(ref.objId);
}
});
}
bgstack15