From 3a407bb6b73a186eafd99bcec570f88097c4b2e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 19:11:53 +0300 Subject: Add const to more classes. --- src/tileset.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tileset.h') diff --git a/src/tileset.h b/src/tileset.h index f60e95266..fe269f2d0 100644 --- a/src/tileset.h +++ b/src/tileset.h @@ -36,8 +36,8 @@ class Tileset : public ImageSet /** * Constructor. */ - Tileset(Image *img, int w, int h, int firstGid, - int margin, int spacing): + Tileset(Image *const img, const int w, const int h, const int firstGid, + const int margin, const int spacing): ImageSet(img, w, h, margin, spacing), mFirstGid(firstGid) { @@ -60,7 +60,7 @@ class Tileset : public ImageSet */ std::string getProperty(std::string name) { - std::map::const_iterator + const std::map::const_iterator it = mProperties.find(name); if (it == mProperties.end()) return ""; -- cgit v1.2.3-70-g09d2