Fixed of warnings

This commit is contained in:
Robert Osfield
2009-01-28 12:45:05 +00:00
parent 065b1d4978
commit d85759c61c
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ void Window::_setWidthAndHeight() {
void Window::_removeFromGeode(Widget* widget) {
if(!widget) return;
widget->_index = -1;
widget->_index = 0; // was originally -1, but _index is a unsigned int...
_setParented(widget, true);

View File

@@ -256,7 +256,7 @@ void WindowManager::childRemoved(unsigned int start, unsigned int numChildren) {
if(!window) continue;
if(_remove(window)) {
window->_index = -1;
window->_index = 0; // was originally -1, but _index is a unsigned int...
window->unmanaged(this);
}