summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
commit82644cd319e46e35a7b4e3b4a61fac2465a2ea66 (patch)
treed737e04b71ea583abe1e835ece785b147a6abfb9 /src/resources/resourcemanager.cpp
parent37343e2b49466bb6cab33f8d1ca362a25f77a660 (diff)
downloadplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.gz
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.bz2
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.xz
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.zip
Add missing final/notfinal to classes.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index ea4698862..bf7b09897 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -498,7 +498,7 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun,
return resource;
}
-struct ResourceLoader
+struct ResourceLoader final
{
ResourceManager *manager;
std::string path;
@@ -534,7 +534,7 @@ SoundEffect *ResourceManager::getSoundEffect(const std::string &idPath)
return static_cast<SoundEffect*>(load(idPath, &SoundEffect::load));
}
-struct DyedImageLoader
+struct DyedImageLoader final
{
ResourceManager *manager;
std::string path;
@@ -575,7 +575,7 @@ Image *ResourceManager::getImage(const std::string &idPath)
return static_cast<Image*>(get(idPath, &DyedImageLoader::load, &rl));
}
-struct ImageSetLoader
+struct ImageSetLoader final
{
ResourceManager *manager;
std::string path;
@@ -609,7 +609,7 @@ ImageSet *ResourceManager::getImageSet(const std::string &imagePath,
}
-struct SubImageSetLoader
+struct SubImageSetLoader final
{
ResourceManager *manager;
Image *parent;
@@ -644,7 +644,7 @@ ImageSet *ResourceManager::getSubImageSet(Image *const parent,
&SubImageSetLoader::load, &rl));
}
-struct SubImageLoader
+struct SubImageLoader final
{
ResourceManager *manager;
Image *parent;
@@ -682,7 +682,7 @@ Image *ResourceManager::getSubImage(Image *const parent,
}
#ifdef USE_OPENGL
-struct AtlasLoader
+struct AtlasLoader final
{
const std::string name;
const StringVect *files;
@@ -708,7 +708,7 @@ Resource *ResourceManager::getAtlas(const std::string &name,
}
#endif
-struct WalkLayerLoader
+struct WalkLayerLoader final
{
const std::string name;
Map *map;
@@ -733,7 +733,7 @@ WalkLayer *ResourceManager::getWalkLayer(const std::string &name,
&WalkLayerLoader::load, &rl));
}
-struct SpriteDefLoader
+struct SpriteDefLoader final
{
std::string path;
int variant;
@@ -936,7 +936,7 @@ void ResourceManager::clearScheduled()
BLOCK_END("ResourceManager::clearScheduled")
}
-struct RescaledLoader
+struct RescaledLoader final
{
ResourceManager *manager;
const Image *image;