summaryrefslogtreecommitdiff
path: root/src/tileset.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
commit3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch)
treeea57a752c348ba0a883294855ad3c62c16e9749d /src/tileset.h
parent872fc368f7b253f26714fc47323064f270b62b40 (diff)
downloadmv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz
mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2
mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz
mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip
Add const to more classes.
Diffstat (limited to 'src/tileset.h')
-rw-r--r--src/tileset.h6
1 files changed, 3 insertions, 3 deletions
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<std::string, std::string>::const_iterator
+ const std::map<std::string, std::string>::const_iterator
it = mProperties.find(name);
if (it == mProperties.end())
return "";