diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:05:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch) | |
tree | 077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/gui/widgets/tablemodel.h | |
parent | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff) | |
download | manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2 manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip |
Add unused warnings to other files.
Diffstat (limited to 'src/gui/widgets/tablemodel.h')
-rw-r--r-- | src/gui/widgets/tablemodel.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/gui/widgets/tablemodel.h b/src/gui/widgets/tablemodel.h index 6fa820467..3f6c465a4 100644 --- a/src/gui/widgets/tablemodel.h +++ b/src/gui/widgets/tablemodel.h @@ -63,27 +63,28 @@ public: /** * Determines the number of rows (lines) in the table */ - virtual int getRows() const = 0; + virtual int getRows() const A_WARN_UNUSED = 0; /** * Determines the number of columns in each row */ - virtual int getColumns() const = 0; + virtual int getColumns() const A_WARN_UNUSED = 0; /** * Determines the height for each row */ - virtual int getRowHeight() const = 0; + virtual int getRowHeight() const A_WARN_UNUSED = 0; /** * Determines the width of each individual column */ - virtual int getColumnWidth(int index) const = 0; + virtual int getColumnWidth(int index) const A_WARN_UNUSED = 0; /** * Retrieves the widget stored at the specified location within the table. */ - virtual gcn::Widget *getElementAt(int row, int column) const = 0; + virtual gcn::Widget *getElementAt(int row, int column) + const A_WARN_UNUSED = 0; virtual void installListener(TableModelListener *const listener); @@ -142,13 +143,14 @@ public: */ virtual void resize(); - virtual int getRows() const; - virtual int getColumns() const; - virtual int getRowHeight() const override; - virtual int getWidth() const; - virtual int getHeight() const; - virtual int getColumnWidth(int index) const; - virtual gcn::Widget *getElementAt(int row, int column) const override; + virtual int getRows() const A_WARN_UNUSED; + virtual int getColumns() const A_WARN_UNUSED; + virtual int getRowHeight() const override A_WARN_UNUSED; + virtual int getWidth() const A_WARN_UNUSED; + virtual int getHeight() const A_WARN_UNUSED; + virtual int getColumnWidth(int index) const A_WARN_UNUSED; + virtual gcn::Widget *getElementAt(int row, int column) + const override A_WARN_UNUSED; protected: int mRows, mColumns; |