Whitespace fixes

This commit is contained in:
Dmitry Marakasov 2016-10-18 17:43:27 +03:00
parent bc779af5d1
commit 4ab3906b07
3 changed files with 4 additions and 4 deletions

View File

@ -29,12 +29,12 @@ Chunk::Chunk(Mix_Chunk* chunk) : chunk_(chunk) {
} }
Chunk::Chunk(const std::string& file) { Chunk::Chunk(const std::string& file) {
if ((chunk_ = Mix_LoadWAV(file.c_str())) == nullptr) if ((chunk_ = Mix_LoadWAV(file.c_str())) == nullptr)
throw Exception("Mix_LoadWAV"); throw Exception("Mix_LoadWAV");
} }
Chunk::Chunk(RWops& rwops) { Chunk::Chunk(RWops& rwops) {
if ((chunk_ = Mix_LoadWAV_RW(rwops.Get(), 0)) == nullptr) if ((chunk_ = Mix_LoadWAV_RW(rwops.Get(), 0)) == nullptr)
throw Exception("Mix_LoadWAV_RW"); throw Exception("Mix_LoadWAV_RW");
} }

View File

@ -28,7 +28,7 @@ Music::Music(Mix_Music* music) : music_(music) {
} }
Music::Music(const std::string& file) { Music::Music(const std::string& file) {
if ((music_ = Mix_LoadMUS(file.c_str())) == nullptr) if ((music_ = Mix_LoadMUS(file.c_str())) == nullptr)
throw Exception("Mix_LoadMUS"); throw Exception("Mix_LoadMUS");
} }

View File

@ -100,7 +100,7 @@ std::ostream& operator<<(std::ostream& stream, const SDL2pp::Rect& rect) {
} }
bool operator<(const SDL2pp::Rect& a, const SDL2pp::Rect& b) { bool operator<(const SDL2pp::Rect& a, const SDL2pp::Rect& b) {
if (a.x == b.x) { if (a.x == b.x) {
if (a.y == b.y) { if (a.y == b.y) {
if (a.w == b.w) if (a.w == b.w)
return a.h < b.h; return a.h < b.h;