From 987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Sep 2012 00:53:33 +0300 Subject: another some const fixes. --- src/resources/resourcemanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources') 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(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( get(idPath, RescaledLoader::load, &rl)); return img; -- cgit v1.2.3-60-g2f50