summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-28 15:53:18 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-29 00:18:56 +0300
commitee1a05faf157c8c9f0f43cf5b906d84f39ded497 (patch)
treed560c7235c09e1117dc9172867c6acb0895edd64 /src/resources/resourcemanager.cpp
parentafbf2f713dd918bd0ff050d71afbf05bc581ab6e (diff)
downloadmv-ee1a05faf157c8c9f0f43cf5b906d84f39ded497.tar.gz
mv-ee1a05faf157c8c9f0f43cf5b906d84f39ded497.tar.bz2
mv-ee1a05faf157c8c9f0f43cf5b906d84f39ded497.tar.xz
mv-ee1a05faf157c8c9f0f43cf5b906d84f39ded497.zip
fix compilation errors and warnings in debug checkers.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 662024f36..3d13e6e00 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -450,7 +450,8 @@ bool ResourceManager::addResource(const std::string &idPath,
resource->incRef();
resource->mIdPath = idPath;
#ifdef DEBUG_IMAGES
- logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+ logger->log("set name %p, %s", static_cast<void*>(resource),
+ resource->mIdPath.c_str());
#endif
mResources[idPath] = resource;
return true;
@@ -522,7 +523,8 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun,
resource->incRef();
resource->mIdPath = idPath;
#ifdef DEBUG_IMAGES
- logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+ logger->log("set name %p, %s", static_cast<void*>(resource),
+ resource->mIdPath.c_str());
#endif
mResources[idPath] = resource;
cleanOrphans();
@@ -539,7 +541,8 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun,
resource->incRef();
resource->mIdPath = idPath;
#ifdef DEBUG_IMAGES
- logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+ logger->log("set name %p, %s", static_cast<void*>(resource),
+ resource->mIdPath.c_str());
#endif
}
else