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..."
This commit is contained in:
Robert Osfield
2008-07-22 09:02:44 +00:00
parent 19e3b1624d
commit f513700450

View File

@@ -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);