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

Unified Diff: ui/aura/window.cc

Issue 127043004: Tweaks to make compiler happy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 19360892d34fe656b069b1b47f3fbf13199bcae1..6595b13d6ac5686256197ea503a0eedc2bd05468 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -1189,8 +1189,8 @@ void Window::StackChildLayerRelativeTo(Window* child,
if (!target_layer) {
if (direction == STACK_ABOVE) {
- for (Layers::const_reverse_iterator i = layers.rbegin();
- i != layers.rend(); ++i) {
+ for (Layers::const_reverse_iterator i = layers.rbegin(),
+ rend = layers.rend(); i != rend; ++i) {
ancestor_layer->StackAtBottom(*i);
}
} else {
@@ -1201,8 +1201,8 @@ void Window::StackChildLayerRelativeTo(Window* child,
}
if (direction == STACK_ABOVE) {
- for (Layers::const_reverse_iterator i = layers.rbegin();
- i != layers.rend(); ++i) {
+ for (Layers::const_reverse_iterator i = layers.rbegin(),
+ rend = layers.rend(); i != rend; ++i) {
ancestor_layer->StackAbove(*i, target_layer);
}
} else {
« 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