summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-31 16:54:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 03:56:16 +0300
commit761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch)
tree2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/map.cpp
parenta39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff)
downloadplus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz
plus-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip
Last part of fixes.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index b649922ae..af40e68e5 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -765,8 +765,8 @@ const std::string Map::getName() const
const std::string Map::getFilename() const
{
std::string fileName = getProperty("_filename");
- int lastSlash = static_cast<int>(fileName.rfind("/")) + 1;
- int lastDot = static_cast<int>(fileName.rfind("."));
+ size_t lastSlash = fileName.rfind("/") + 1;
+ size_t lastDot = fileName.rfind(".");
return fileName.substr(lastSlash, lastDot - lastSlash);
}