From 5b5257728500b358300f6e8824927c29d6b09618 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 20:06:57 +0300 Subject: fix const in being class. --- src/being/being.cpp | 4 ++-- src/being/being.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/being/being.cpp b/src/being/being.cpp index 7758abd4d..7271a06c2 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2223,7 +2223,7 @@ bool Being::draw(Graphics *const graphics, } void Being::drawSprites(Graphics *const graphics, - const int posX, const int posY) const + int posX, int posY) const { const int sz = getNumberOfLayers(); for (int f = 0; f < sz; f ++) @@ -2242,7 +2242,7 @@ void Being::drawSprites(Graphics *const graphics, } void Being::drawSpritesSDL(Graphics *const graphics, - const int posX, const int posY) const + int posX, int posY) const { const size_t sz = size(); for (unsigned f = 0; f < sz; f ++) diff --git a/src/being/being.h b/src/being/being.h index c2d9dfc00..6e9d55768 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -888,7 +888,7 @@ class Being : public ActorSprite, public ConfigListener static uint8_t genderToInt(const Gender sex) A_WARN_UNUSED; - static Gender intToGender(uint8_t sex) A_WARN_UNUSED; + static Gender intToGender(const uint8_t sex) A_WARN_UNUSED; NextSoundInfo mNextSound; -- cgit v1.2.3-70-g09d2