diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 01:19:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch) | |
tree | 4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/particle.h | |
parent | 2a70a50c785ce639b76141a3a6887836d22fe12c (diff) | |
download | manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2 manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip |
Add unused warnings to some files.
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/particle.h b/src/particle.h index 4dc419aea..9d510b9ae 100644 --- a/src/particle.h +++ b/src/particle.h @@ -113,13 +113,13 @@ class Particle : public Actor /** * Necessary for sorting with the other sprites. */ - virtual int getPixelY() const override + virtual int getPixelY() const override A_WARN_UNUSED { return static_cast<int>(mPos.y) - 16; } /** * Necessary for sorting with the other sprites for sorting only. */ - virtual int getSortPixelY() const override + virtual int getSortPixelY() const override A_WARN_UNUSED { return static_cast<int>(mPos.y) - 16; } /** @@ -230,7 +230,7 @@ class Particle : public Actor /** * Gets the flag if the particle is supposed to be moved by its parent */ - bool doesFollow() const + bool doesFollow() const A_WARN_UNUSED { return mFollow; } /** @@ -258,13 +258,13 @@ class Particle : public Actor void setAllowSizeAdjust(const bool adjust) { mAllowSizeAdjust = adjust; } - bool isAlive() const + bool isAlive() const A_WARN_UNUSED { return mAlive == ALIVE; } /** * Determines whether the particle and its children are all dead */ - bool isExtinct() const + bool isExtinct() const A_WARN_UNUSED { return !isAlive() && mChildParticles.empty(); } /** |