summaryrefslogtreecommitdiff
path: root/src/gui/setup_players.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:23:25 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:23:25 +0200
commit6df16720da3ae3257636e000c10b62d0b99f752e (patch)
tree5fed84d7d00d2632335fb455e1c78440dd6cb69a /src/gui/setup_players.cpp
parentc2697fef772f84db637f55b7501361ea94ed66ee (diff)
downloadmana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.gz
mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.bz2
mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.xz
mana-6df16720da3ae3257636e000c10b62d0b99f752e.zip
Fixed const-ness of TableModel related methods
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r--src/gui/setup_players.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp
index 01a99567..c5dffe3d 100644
--- a/src/gui/setup_players.cpp
+++ b/src/gui/setup_players.cpp
@@ -99,22 +99,22 @@ public:
delete mPlayers;
}
- virtual int getRows()
+ virtual int getRows() const
{
return mPlayers->size();
}
- virtual int getColumns()
+ virtual int getColumns() const
{
return COLUMNS_NR;
}
- virtual int getRowHeight()
+ virtual int getRowHeight() const
{
return ROW_HEIGHT;
}
- virtual int getColumnWidth(int index)
+ virtual int getColumnWidth(int index) const
{
if (index == NAME_COLUMN)
return NAME_COLUMN_WIDTH;
@@ -158,7 +158,7 @@ public:
}
- virtual gcn::Widget *getElementAt(int row, int column)
+ virtual gcn::Widget *getElementAt(int row, int column) const
{
return mWidgets[WIDGET_AT(row, column)];
}
@@ -178,7 +178,7 @@ public:
mWidgets.clear();
}
- std::string getPlayerAt(int index)
+ std::string getPlayerAt(int index) const
{
return (*mPlayers)[index];
}