summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 5abc81e2..a087082d 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -47,8 +47,8 @@ class ResourceManager
public:
- typedef Resource *(*loader)(SDL_RWops *);
- typedef Resource *(*generator)(void *);
+ using loader = Resource *(*)(SDL_RWops *);
+ using generator = Resource *(*)(void *);
ResourceManager();
@@ -249,8 +249,8 @@ class ResourceManager
void cleanOrphans();
static ResourceManager *instance;
- typedef std::map<std::string, Resource*> Resources;
- typedef Resources::iterator ResourceIterator;
+ using Resources = std::map<std::string, Resource *>;
+ using ResourceIterator = Resources::iterator;
std::set<SDL_Surface*> mDeletedSurfaces;
Resources mResources;
Resources mOrphanedResources;