diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-29 11:25:26 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-29 11:25:26 +0000 |
commit | 94d849ad87bd53c6c51530ea7c0b084ca6899533 (patch) | |
tree | 07923cc45286379c58c6a47dfb293adfa910b983 /src/gui/gccontainer.cpp | |
parent | 567d35731d8cca0e535f23652b8fbe050a629f91 (diff) | |
download | mana-94d849ad87bd53c6c51530ea7c0b084ca6899533.tar.gz mana-94d849ad87bd53c6c51530ea7c0b084ca6899533.tar.bz2 mana-94d849ad87bd53c6c51530ea7c0b084ca6899533.tar.xz mana-94d849ad87bd53c6c51530ea7c0b084ca6899533.zip |
Removed unused option from GCContainer to not delete a child, fixing warnings
about hiding virtual method gcn::Container::add.
Diffstat (limited to 'src/gui/gccontainer.cpp')
-rw-r--r-- | src/gui/gccontainer.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gui/gccontainer.cpp b/src/gui/gccontainer.cpp index c22ddfc9..1edb4daf 100644 --- a/src/gui/gccontainer.cpp +++ b/src/gui/gccontainer.cpp @@ -37,21 +37,15 @@ GCContainer::~GCContainer() mDeathList.clear(); } -void GCContainer::add(gcn::Widget *w, bool delChild) +void GCContainer::add(gcn::Widget *w) { - if (delChild) { - mDeathList.push_back(w); - } - + mDeathList.push_back(w); Container::add(w); } -void GCContainer::add(gcn::Widget *w, int x, int y, bool delChild) +void GCContainer::add(gcn::Widget *w, int x, int y) { - if (delChild) { - mDeathList.push_back(w); - } - + mDeathList.push_back(w); Container::add(w, x, y); } |