From 1ec8c29f8efc77f728c1f1b733966c6a4dfe9d6e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 29 Nov 2011 04:57:31 +0100 Subject: code formatting --- src/base/image.cpp | 3 ++- src/base/song.cpp | 4 ++-- test/base/songloading.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/base/image.cpp b/src/base/image.cpp index 753c8ec3..448f4852 100644 --- a/src/base/image.cpp +++ b/src/base/image.cpp @@ -64,7 +64,8 @@ namespace usdx { BinaryFile file(filename); - SDL_RWops* source = SDL_RWFromConstMem(file.get_content(), file.get_filesize()); + SDL_RWops* source = SDL_RWFromConstMem(file.get_content(), + file.get_filesize()); surface = IMG_Load_RW(source, 1); if (surface == NULL) { diff --git a/src/base/song.cpp b/src/base/song.cpp index af7e90a5..51798115 100644 --- a/src/base/song.cpp +++ b/src/base/song.cpp @@ -39,7 +39,7 @@ namespace usdx } Song::Song(const boost::filesystem::wpath& filename, - const std::map& header) : + const std::map& header) : filename(filename), custom_header_tags(header) { std::map::iterator it; @@ -100,7 +100,7 @@ namespace usdx std::string Song::get_header_tag(const std::string& tag, const bool required) { - std::map::iterator it; + std::map::iterator it; std::string result = ""; if ((it = custom_header_tags.find(tag)) != custom_header_tags.end()) { diff --git a/test/base/songloading.cpp b/test/base/songloading.cpp index 94690cc3..03824669 100644 --- a/test/base/songloading.cpp +++ b/test/base/songloading.cpp @@ -63,7 +63,7 @@ namespace usdx Song *song = Songloader::get_instance()->load_header("testdata/testsong_correct.txt"); CPPUNIT_ASSERT( "Test Ă„rtist" == song->get_artist() ); - // FIXIT: unicode length is not counted correctly + // FIXIT: unicode length is not counted correctly // CPPUNIT_ASSERT( 11 == song->get_artist().length() ); CPPUNIT_ASSERT( "Test Title" == song->get_title() ); CPPUNIT_ASSERT( "Test.mp3" == song->get_mp3() ); -- cgit v1.2.3