diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:22:36 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:22:36 +0200 |
commit | ecb1524f8da7901338b263384fed3c612f117b4c (patch) | |
tree | e7e06423fe27ea5ab45f27fc4b39ae597ba72490 /ui/tree_view.cpp | |
parent | 5.10 (diff) | |
download | FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.tar.gz FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.tar.bz2 FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.zip |
5.11
Diffstat (limited to 'ui/tree_view.cpp')
-rw-r--r-- | ui/tree_view.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/tree_view.cpp b/ui/tree_view.cpp index 119091a0..5a63e579 100644 --- a/ui/tree_view.cpp +++ b/ui/tree_view.cpp @@ -268,10 +268,10 @@ void TreeView::applySubView(std::vector<RootNodeImpl>&& newView) zen::hash_set<const HierarchyObject*> expandedNodes; if (!flatTree.empty()) { - auto iter = flatTree.begin(); - for (auto iterNext = flatTree.begin() + 1; iterNext != flatTree.end(); ++iterNext, ++iter) - if (iter->level_ < iterNext->level_) - if (auto hierObj = getHierAlias(*iter)) + auto it = flatTree.begin(); + for (auto iterNext = flatTree.begin() + 1; iterNext != flatTree.end(); ++iterNext, ++it) + if (it->level_ < iterNext->level_) + if (auto hierObj = getHierAlias(*it)) expandedNodes.insert(hierObj); } @@ -1048,19 +1048,19 @@ private: { auto colAttr = grid_.getColumnConfig(); - for (auto iter = colAttr.begin(); iter != colAttr.end(); ++iter) - if (iter->type_ == ca.type_) + for (auto it = colAttr.begin(); it != colAttr.end(); ++it) + if (it->type_ == ca.type_) { - iter->visible_ = !ca.visible_; + it->visible_ = !ca.visible_; grid_.setColumnConfig(colAttr); return; } }; const auto& colAttr = grid_.getColumnConfig(); - for (auto iter = colAttr.begin(); iter != colAttr.end(); ++iter) + for (auto it = colAttr.begin(); it != colAttr.end(); ++it) { - const Grid::ColumnAttribute& ca = *iter; + const Grid::ColumnAttribute& ca = *it; menu.addCheckBox(getColumnLabel(ca.type_), [ca, toggleColumn]() { toggleColumn(ca); }, ca.visible_, ca.type_ != static_cast<ColumnType>(COL_TYPE_NAVI_DIRECTORY)); //do not allow user to hide file name column! |