summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 00:53:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 00:53:33 +0300
commit987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2 (patch)
tree1ae9449d801815fe89476776d98427e61d702d4c /src/resources/resourcemanager.cpp
parentf24ddad3fa0f843eb29a281426151cf1a5f31f4b (diff)
downloadManaVerse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.gz
ManaVerse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.bz2
ManaVerse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.xz
ManaVerse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.zip
another some const fixes.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 1edd7b6de..c06f9c181 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -585,7 +585,7 @@ ImageSet *ResourceManager::getSubImageSet(Image *const parent,
if (!parent)
return nullptr;
- SubImageSetLoader rl = { this, parent, width, height };
+ const SubImageSetLoader rl = { this, parent, width, height };
std::stringstream ss;
ss << parent->getIdPath() << ", set[" << width << "x" << height << "]";
return static_cast<ImageSet*>(get(ss.str(), SubImageSetLoader::load, &rl));
@@ -620,7 +620,7 @@ Image *ResourceManager::getSubImage(Image *const parent,
if (!parent)
return nullptr;
- SubImageLoader rl = { this, parent, x, y, width, height};
+ const SubImageLoader rl = { this, parent, x, y, width, height};
std::stringstream ss;
ss << parent->getIdPath() << ",[" << x << "," << y << ","
@@ -885,7 +885,7 @@ Image *ResourceManager::getRescaled(Image *const image,
std::string idPath = image->getIdPath() + strprintf(
"_rescaled%dx%d", width, height);
- RescaledLoader rl = { this, image, width, height };
+ const RescaledLoader rl = { this, image, width, height };
Image *const img = static_cast<Image *const>(
get(idPath, RescaledLoader::load, &rl));
return img;