Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: mojo/services/window_manager/window_manager_app.cc

Issue 401263002: [build-fix] [gcc 4.6.*] Use iterator instead of const_iterator while using std::map::erase(...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_app.cc
diff --git a/mojo/services/window_manager/window_manager_app.cc b/mojo/services/window_manager/window_manager_app.cc
index f8380dd436733ddf827374875a40ac4fc3a492ac..bb096f5c9e3ec21df2469e34db0a0d9bb1e16e54 100644
--- a/mojo/services/window_manager/window_manager_app.cc
+++ b/mojo/services/window_manager/window_manager_app.cc
@@ -261,7 +261,7 @@ void WindowManagerApp::RegisterSubtree(view_manager::Id id,
void WindowManagerApp::UnregisterSubtree(view_manager::Id id) {
view_manager::Node* node = view_manager_->GetNodeById(id);
- NodeIdToWindowMap::const_iterator it = node_id_to_window_map_.find(id);
+ NodeIdToWindowMap::iterator it = node_id_to_window_map_.find(id);
DCHECK(it != node_id_to_window_map_.end());
scoped_ptr<aura::Window> window(it->second);
node_id_to_window_map_.erase(it);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698