summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:51:37 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:51:37 +0000
commit3b1cb45812fe4308073057c27837bc0c69a5d35e (patch)
treef77657cdc2ae5d333acd47522bf261da1fef9fee /src/resources/resourcemanager.h
parent093d95683bfcbbff6e0ddd87414e2cd723f17dc9 (diff)
downloadmana-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.gz
mana-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.bz2
mana-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.xz
mana-3b1cb45812fe4308073057c27837bc0c69a5d35e.zip
Made ResourceManager a friend of Resource to avoid looping over decRef, which returns void now.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 6ebcd590..37fbe213 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -184,7 +184,9 @@ class ResourceManager
private:
static ResourceManager *instance;
- std::map<std::string, Resource*> resources;
+ typedef std::map<std::string, Resource*> Resources;
+ typedef Resources::iterator ResourceIterator;
+ Resources mResources;
};
#endif