summaryrefslogtreecommitdiff
path: root/src/gui/table_model.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-19 20:33:25 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-19 20:33:25 +0100
commit8c826dd4d5ed56826c588734a192977fc3155e49 (patch)
treea2478cb144a7e022ac263e09fdefd2d3594ece5b /src/gui/table_model.cpp
parentec7fcc9e2029b9b57acb5bfae25faa7b95e19412 (diff)
downloadmana-8c826dd4d5ed56826c588734a192977fc3155e49.tar.gz
mana-8c826dd4d5ed56826c588734a192977fc3155e49.tar.bz2
mana-8c826dd4d5ed56826c588734a192977fc3155e49.tar.xz
mana-8c826dd4d5ed56826c588734a192977fc3155e49.zip
Reflowed Player tab in setup to use layout code
Signed-off-by: Ira Rice <irarice@gmail.com> (cherry picked from commit 18c00fedebda79d4ebfbe15401c3e5bc8869fda2) Conflicts: src/gui/setup_players.cpp
Diffstat (limited to 'src/gui/table_model.cpp')
-rw-r--r--src/gui/table_model.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/table_model.cpp b/src/gui/table_model.cpp
index 2146879a..d2119155 100644
--- a/src/gui/table_model.cpp
+++ b/src/gui/table_model.cpp
@@ -24,6 +24,8 @@
#include <guichan/widget.hpp>
#include <cstdlib>
+#include "../utils/dtor.h"
+
void TableModel::installListener(TableModelListener *listener)
{
listeners.insert(listener);
@@ -62,9 +64,7 @@ StaticTableModel::StaticTableModel(int row, int column) :
StaticTableModel::~StaticTableModel()
{
- for (std::vector<gcn::Widget *>::const_iterator it = mTableModel.begin(); it != mTableModel.end(); it++)
- if (*it)
- delete *it;
+ delete_all(mTableModel);
}
void StaticTableModel::resize()