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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user