diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-31 02:51:37 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-31 02:51:37 +0000 |
commit | 3b1cb45812fe4308073057c27837bc0c69a5d35e (patch) | |
tree | f77657cdc2ae5d333acd47522bf261da1fef9fee /src/resources/resource.cpp | |
parent | 093d95683bfcbbff6e0ddd87414e2cd723f17dc9 (diff) | |
download | mana-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/resource.cpp')
-rw-r--r-- | src/resources/resource.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/resources/resource.cpp b/src/resources/resource.cpp index 5c1df52d..bd8cd437 100644 --- a/src/resources/resource.cpp +++ b/src/resources/resource.cpp @@ -43,7 +43,7 @@ Resource::incRef() mRefCount++; } -bool +void Resource::decRef() { // Reference may not already have reached zero @@ -56,9 +56,5 @@ Resource::decRef() ResourceManager *resman = ResourceManager::getInstance(); resman->release(mIdPath); delete this; - return true; - } - else { - return false; } } |