summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
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