summaryrefslogtreecommitdiff
path: root/src/utils/sdlcheckutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-27 20:22:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-27 21:52:59 +0300
commit53ae7cee19c269a6ebf53e468825305d448ff006 (patch)
treefb43a66adaacc3bb2e42a8d346b5d267f2b807c8 /src/utils/sdlcheckutils.cpp
parenteb9841897bbe93da6aa4ca2537a3e22b3a868d98 (diff)
downloadmanaplus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.gz
manaplus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.bz2
manaplus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.xz
manaplus-53ae7cee19c269a6ebf53e468825305d448ff006.zip
fix code style.
Diffstat (limited to 'src/utils/sdlcheckutils.cpp')
-rw-r--r--src/utils/sdlcheckutils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/sdlcheckutils.cpp b/src/utils/sdlcheckutils.cpp
index 0d471d005..d8e902e4f 100644
--- a/src/utils/sdlcheckutils.cpp
+++ b/src/utils/sdlcheckutils.cpp
@@ -37,7 +37,7 @@
struct SurfaceObject
{
- SurfaceObject(const std::string name, const char *const file,
+ SurfaceObject(const std::string &name, const char *const file,
const unsigned int line) :
mName(name),
mAddFile(strprintf("%s:%u", file, line)),
@@ -60,7 +60,8 @@ static SDL_Surface *addSurface(const char *const name,
const unsigned line)
{
#ifdef DEBUG_SURFACE_ALLOCATION
- logger->log("add surface: %s %s:%u %p", name, file, line, static_cast<void*>(surface));
+ logger->log("add surface: %s %s:%u %p", name,
+ file, line, static_cast<void*>(surface));
#endif
std::map<SDL_Surface*, SurfaceObject*>::iterator
it = mSurfaces.find(surface);
@@ -173,7 +174,7 @@ SDL_Surface *FakeSDL_ConvertSurface(SDL_Surface *const src,
SDL_Surface *FakeTTF_RenderUTF8_Blended(_TTF_Font *const font,
const char *const text,
- const SDL_Color fg,
+ const SDL_Color &fg,
const char *const file,
const unsigned line)
{