From f513700450a65614eceaa884ee562b7d8440b988 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 22 Jul 2008 09:02:44 +0000 Subject: [PATCH] From Mario Valle, "The attached osgWidget source solves three compilation warnings on VC 7.1 on WindowsXP (OSG 2.5.5). BTW the construct is absolutely legal C++, but VC 7.1 has a different idea..." --- src/osgWidget/WindowManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgWidget/WindowManager.cpp b/src/osgWidget/WindowManager.cpp index ddb9fa46f..a632018d4 100644 --- a/src/osgWidget/WindowManager.cpp +++ b/src/osgWidget/WindowManager.cpp @@ -351,8 +351,8 @@ bool WindowManager::setFocused(Window* window) { Vector bg; Vector fg; - for(ConstIterator i = begin(); i != end(); i++) if(i->valid()) { - Window* w = i->get(); + for(ConstIterator it = begin(); it != end(); it++) if(it->valid()) { + Window* w = it->get(); if(w->getStrata() == Window::STRATA_FOREGROUND) fg.push_back(w);