diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-18 23:15:08 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-18 23:15:08 -0700 |
commit | 18c00fedebda79d4ebfbe15401c3e5bc8869fda2 (patch) | |
tree | deda39b903e4882d60d0a82fb415f42f16acfadb /src/gui/table_model.cpp | |
parent | 8f28b18a31fc8415fbf6aedc5106b8b8525f4caf (diff) | |
download | mana-18c00fedebda79d4ebfbe15401c3e5bc8869fda2.tar.gz mana-18c00fedebda79d4ebfbe15401c3e5bc8869fda2.tar.bz2 mana-18c00fedebda79d4ebfbe15401c3e5bc8869fda2.tar.xz mana-18c00fedebda79d4ebfbe15401c3e5bc8869fda2.zip |
Reflowed Player tab in setup to use layout code. TODO: Fix up table
model, cause it's a mess.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/table_model.cpp')
-rw-r--r-- | src/gui/table_model.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/table_model.cpp b/src/gui/table_model.cpp index 9911eec3..d626423a 100644 --- a/src/gui/table_model.cpp +++ b/src/gui/table_model.cpp @@ -25,6 +25,8 @@ #include "table_model.h" +#include "../utils/dtor.h" + void TableModel::installListener(TableModelListener *listener) { listeners.insert(listener); @@ -63,9 +65,7 @@ StaticTableModel::StaticTableModel(int row, int column) : StaticTableModel::~StaticTableModel(void) { - for (std::vector<gcn::Widget *>::const_iterator it = mTableModel.begin(); it != mTableModel.end(); it++) - if (*it) - delete *it; + delete_all(mTableModel); } void StaticTableModel::resize(void) |