summaryrefslogtreecommitdiff
path: root/src/resources/resource.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/resource.h
parent093d95683bfcbbff6e0ddd87414e2cd723f17dc9 (diff)
downloadmana-client-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.gz
mana-client-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.bz2
mana-client-3b1cb45812fe4308073057c27837bc0c69a5d35e.tar.xz
mana-client-3b1cb45812fe4308073057c27837bc0c69a5d35e.zip
Made ResourceManager a friend of Resource to avoid looping over decRef, which returns void now.
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r--src/resources/resource.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h
index fe534606..d8b93e2d 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -31,6 +31,8 @@
*/
class Resource
{
+ friend class ResourceManager;
+
public:
/**
* Constructor
@@ -50,7 +52,7 @@ class Resource
* @return <code>true</code> if the object was deleted
* <code>false</code> otherwise.
*/
- bool
+ void
decRef();
/**