summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 13:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch)
tree077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/gui/widgets/guitable.h
parent6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff)
downloadplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip
Add unused warnings to other files.
Diffstat (limited to 'src/gui/widgets/guitable.h')
-rw-r--r--src/gui/widgets/guitable.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h
index 704276026..38026d5ab 100644
--- a/src/gui/widgets/guitable.h
+++ b/src/gui/widgets/guitable.h
@@ -66,7 +66,7 @@ public:
/**
* Retrieves the active table model
*/
- TableModel *getModel() const;
+ TableModel *getModel() const A_WARN_UNUSED;
/**
* Sets the table model
@@ -80,21 +80,21 @@ public:
void setSelected(int row, int column);
- int getSelectedRow() const;
+ int getSelectedRow() const A_WARN_UNUSED;
- int getSelectedColumn() const;
+ int getSelectedColumn() const A_WARN_UNUSED;
void setSelectedRow(int selected);
void setSelectedColumn(int selected);
- bool isWrappingEnabled() const
+ bool isWrappingEnabled() const A_WARN_UNUSED
{ return mWrappingEnabled; }
void setWrappingEnabled(bool wrappingEnabled)
{ mWrappingEnabled = wrappingEnabled; }
- gcn::Rectangle getChildrenArea() override;
+ gcn::Rectangle getChildrenArea() override A_WARN_UNUSED;
/**
* Toggle whether to use linewise selection mode, in which the table selects
@@ -112,7 +112,7 @@ public:
// Inherited from Widget
virtual void draw(gcn::Graphics* graphics) override;
- virtual gcn::Widget *getWidgetAt(int x, int y) override;
+ virtual gcn::Widget *getWidgetAt(int x, int y) override A_WARN_UNUSED;
virtual void moveToTop(gcn::Widget *child) override;
@@ -138,7 +138,7 @@ public:
*
* @return True if the table is opaque, false otherwise.
*/
- virtual bool isOpaque() const
+ virtual bool isOpaque() const A_WARN_UNUSED
{ return mOpaque; }
// Inherited from MouseListener
@@ -159,12 +159,12 @@ protected:
/** Installs all action listeners on inner widgets. */
virtual void installActionListeners();
- virtual int getRowHeight() const;
- virtual int getColumnWidth(int i) const;
+ virtual int getRowHeight() const A_WARN_UNUSED;
+ virtual int getColumnWidth(int i) const A_WARN_UNUSED;
private:
- int getRowForY(int y) const; // -1 on error
- int getColumnForX(int x) const; // -1 on error
+ int getRowForY(int y) const A_WARN_UNUSED; // -1 on error
+ int getColumnForX(int x) const A_WARN_UNUSED; // -1 on error
void recomputeDimensions();
bool mLinewiseMode;
bool mWrappingEnabled;