From c430b75e370a21a17f80d4ba3acd84111828a462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Sep 2013 20:08:44 +0300 Subject: add const for methods return values. --- src/map.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 37990752b..11ef04fa1 100644 --- a/src/map.h +++ b/src/map.h @@ -214,12 +214,12 @@ class Map final : public Properties, public ConfigListener /** * Finds the tile set that a tile with the given global id is part of. */ - Tileset *getTilesetWithGid(const int gid) const A_WARN_UNUSED; + const Tileset *getTilesetWithGid(const int gid) const A_WARN_UNUSED; /** * Get tile reference. */ - MetaTile *getMetaTile(const int x, const int y) const A_WARN_UNUSED; + const MetaTile *getMetaTile(const int x, const int y) const A_WARN_UNUSED; /** * Marks a tile as occupied. @@ -363,7 +363,8 @@ class Map final : public Properties, public ConfigListener /** * Gets the tile animation for a specific gid */ - TileAnimation *getAnimationForGid(const int gid) const A_WARN_UNUSED; + const TileAnimation *getAnimationForGid(const int gid) + const A_WARN_UNUSED; void optionChanged(const std::string &value) override; @@ -374,7 +375,7 @@ class Map final : public Properties, public ConfigListener void setPvpMode(const int mode); - ObjectsLayer* getObjectsLayer() const A_WARN_UNUSED + const ObjectsLayer* getObjectsLayer() const A_WARN_UNUSED { return mObjects; } std::string getObjectData(const unsigned x, const unsigned y, -- cgit v1.2.3-70-g09d2