summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layout.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/layout.h
parent6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff)
downloadmv-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz
mv-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2
mv-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz
mv-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip
Add unused warnings to other files.
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r--src/gui/widgets/layout.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h
index 895cf6019..b1788343c 100644
--- a/src/gui/widgets/layout.h
+++ b/src/gui/widgets/layout.h
@@ -44,13 +44,13 @@ class ContainerPlacer final
/**
* Gets the pointed cell.
*/
- LayoutCell &getCell()
+ LayoutCell &getCell() A_WARN_UNUSED
{ return *mCell; }
/**
* Returns a placer for the same container but to an inner cell.
*/
- ContainerPlacer at(const int x, const int y);
+ ContainerPlacer at(const int x, const int y) A_WARN_UNUSED;
/**
* Adds the given widget to the container and places it in the layout.
@@ -81,7 +81,7 @@ class LayoutArray final
* Returns a reference on the cell at given position.
*/
LayoutCell &at(const int x, const int y,
- const int w = 1, const int h = 1);
+ const int w = 1, const int h = 1) A_WARN_UNUSED;
/**
* Places a widget in a given cell.
@@ -141,12 +141,12 @@ class LayoutArray final
* Gets the column/row sizes along a given axis.
* @param upp target size for the array. Ignored if AUTO_DEF.
*/
- std::vector<int> getSizes(const int dim, int upp) const;
+ std::vector<int> getSizes(const int dim, int upp) const A_WARN_UNUSED;
/**
* Gets the total size along a given axis.
*/
- int getSize(const int dim) const;
+ int getSize(const int dim) const A_WARN_UNUSED;
std::vector<int> mSizes[2];
std::vector< std::vector < LayoutCell * > > mCells;
@@ -226,7 +226,7 @@ class LayoutCell
/**
* @see LayoutArray::at
*/
- LayoutCell &at(int x, int y)
+ LayoutCell &at(int x, int y) A_WARN_UNUSED
{ return getArray().at(x, y); }
/**
@@ -268,10 +268,10 @@ class LayoutCell
void setType(int t)
{ mType = t; }
- int getWidth() const
+ int getWidth() const A_WARN_UNUSED
{ return mExtent[0]; }
- int getHeight() const
+ int getHeight() const A_WARN_UNUSED
{ return mExtent[1]; }
void setWidth(int w)