summaryrefslogtreecommitdiff
path: root/src/utils
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
parenteb9841897bbe93da6aa4ca2537a3e22b3a868d98 (diff)
downloadplus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.gz
plus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.bz2
plus-53ae7cee19c269a6ebf53e468825305d448ff006.tar.xz
plus-53ae7cee19c269a6ebf53e468825305d448ff006.zip
fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sdlcheckutils.cpp7
-rw-r--r--src/utils/sdlcheckutils.h2
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);