diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-28 15:53:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-29 00:18:56 +0300 |
commit | ee1a05faf157c8c9f0f43cf5b906d84f39ded497 (patch) | |
tree | d560c7235c09e1117dc9172867c6acb0895edd64 /src/resources/image.cpp | |
parent | afbf2f713dd918bd0ff050d71afbf05bc581ab6e (diff) | |
download | mv-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/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index b5a852996..cd8231e7b 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -115,7 +115,7 @@ Image::Image(SDL_Surface *const image, const bool hasAlphaChannel0, mIsAlphaCalculated(false) { #ifdef DEBUG_IMAGES - logger->log("created: %p", this); + logger->log("created: %p", static_cast<void*>(this)); #endif mBounds.x = 0; @@ -159,7 +159,7 @@ Image::Image(const GLuint glimage, const int width, const int height, mIsAlphaCalculated(false) { #ifdef DEBUG_IMAGES - logger->log("created: %p", this); + logger->log("created: %p", static_cast<void*>(this)); #endif mBounds.x = 0; @@ -182,7 +182,8 @@ Image::Image(const GLuint glimage, const int width, const int height, Image::~Image() { #ifdef DEBUG_IMAGES - logger->log("delete: %p, %s, %s", this, mIdPath.c_str(), mSource.c_str()); + logger->log("delete: %p, %s, %s", static_cast<void*>(this), + mIdPath.c_str(), mSource.c_str()); #endif unload(); } |