diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-27 20:22:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-27 21:52:59 +0300 |
commit | 53ae7cee19c269a6ebf53e468825305d448ff006 (patch) | |
tree | fb43a66adaacc3bb2e42a8d346b5d267f2b807c8 /src/utils | |
parent | eb9841897bbe93da6aa4ca2537a3e22b3a868d98 (diff) | |
download | mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.gz mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.bz2 mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.xz mv-53ae7cee19c269a6ebf53e468825305d448ff006.zip |
fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sdlcheckutils.cpp | 7 | ||||
-rw-r--r-- | src/utils/sdlcheckutils.h | 2 |
2 files changed, 5 insertions, 4 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) { diff --git a/src/utils/sdlcheckutils.h b/src/utils/sdlcheckutils.h index d65351c45..5a29ab1ba 100644 --- a/src/utils/sdlcheckutils.h +++ b/src/utils/sdlcheckutils.h @@ -56,7 +56,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); |