diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
commit | bc5c031e43eff506c925682349dd2a52b89d6565 (patch) | |
tree | 6c429dfa2386fcde5e1e9b8f8994dc8bd77b0b2f /src/gui/widgets/listbox.h | |
parent | ed39c71b2b6b47931f352ca07b49f631d6bf713a (diff) | |
download | mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.gz mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.bz2 mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.xz mana-bc5c031e43eff506c925682349dd2a52b89d6565.zip |
Delete models explicitly rather than relying on booleans
It is more clear in the end. Also fixed deleting of the mode list model.
Diffstat (limited to 'src/gui/widgets/listbox.h')
-rw-r--r-- | src/gui/widgets/listbox.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h index c0662ed2..ed17c6ad 100644 --- a/src/gui/widgets/listbox.h +++ b/src/gui/widgets/listbox.h @@ -39,7 +39,7 @@ class ListBox : public gcn::ListBox /** * Constructor. */ - ListBox(gcn::ListModel *listModel, bool deleteModel = false); + ListBox(gcn::ListModel *listModel); ~ListBox(); @@ -67,8 +67,6 @@ class ListBox : public gcn::ListBox private: static float mAlpha; - - bool mDeleteModel; }; #endif |