Commit bc4ec1b3 authored by sky@chromium.org's avatar sky@chromium.org

Tweaks to make compiler happy

For some reason stl for android has problems with these lines,
tweaking for loop makes the compiler happy.

BUG=none
TEST=none
R=ben@chromium.org

Review URL: https://codereview.chromium.org/127043004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243621 0039d316-1c4b-4281-b951-d872f2087c98
parent 5dc42098
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment