summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/gui/viewport.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadmanaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 2803b1b97..c370f1e3b 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -196,25 +196,25 @@ class Viewport final : public WindowContainer,
/**
* Returns camera x offset in pixels.
*/
- int getCameraX() const
+ int getCameraX() const A_WARN_UNUSED
{ return mPixelViewX; }
/**
* Returns camera y offset in pixels.
*/
- int getCameraY() const
+ int getCameraY() const A_WARN_UNUSED
{ return mPixelViewY; }
/**
* Returns mouse x in pixels.
*/
- int getMouseX() const
+ int getMouseX() const A_WARN_UNUSED
{ return mMouseX; }
/**
* Returns mouse y in pixels.
*/
- int getMouseY() const
+ int getMouseY() const A_WARN_UNUSED
{ return mMouseY; }
/**
@@ -226,16 +226,16 @@ class Viewport final : public WindowContainer,
/**
* Returns the current map object.
*/
- Map *getCurrentMap() const
+ Map *getCurrentMap() const A_WARN_UNUSED
{ return mMap; }
- int getDebugPath() const
+ int getDebugPath() const A_WARN_UNUSED
{ return mShowDebugPath; }
void setDebugPath(const int n)
{ mShowDebugPath = n; }
- int getCameraMode() const
+ int getCameraMode() const A_WARN_UNUSED
{ return mCameraMode; }
/**
@@ -248,15 +248,15 @@ class Viewport final : public WindowContainer,
*/
void cleanHoverItems();
- Map *getMap() const
+ Map *getMap() const A_WARN_UNUSED
{ return mMap; }
void moveCamera(const int dx, const int dy);
- int getCameraRelativeX() const
+ int getCameraRelativeX() const A_WARN_UNUSED
{ return mCameraRelativeX; }
- int getCameraRelativeY() const
+ int getCameraRelativeY() const A_WARN_UNUSED
{ return mCameraRelativeY; }
void setCameraRelativeX(const int n)
@@ -265,7 +265,7 @@ class Viewport final : public WindowContainer,
void setCameraRelativeY(const int n)
{ mCameraRelativeY = n; }
- bool isPopupMenuVisible() const;
+ bool isPopupMenuVisible() const A_WARN_UNUSED;
void moveCameraToActor(const int actorId, const int x = 0,
const int y = 0);