diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-05 00:53:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-05 00:53:33 +0300 |
commit | 987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2 (patch) | |
tree | 1ae9449d801815fe89476776d98427e61d702d4c /src/resources | |
parent | f24ddad3fa0f843eb29a281426151cf1a5f31f4b (diff) | |
download | manaverse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.gz manaverse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.bz2 manaverse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.tar.xz manaverse-987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2.zip |
another some const fixes.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/resourcemanager.cpp | 6 |
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; |