From 4ab3906b076586054e369da5d1e494f7f1adb6ed Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 18 Oct 2016 17:43:27 +0300 Subject: [PATCH] Whitespace fixes --- SDL2pp/Chunk.cc | 4 ++-- SDL2pp/Music.cc | 2 +- SDL2pp/Rect.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SDL2pp/Chunk.cc b/SDL2pp/Chunk.cc index 1b3555e..d32ee38 100644 --- a/SDL2pp/Chunk.cc +++ b/SDL2pp/Chunk.cc @@ -29,12 +29,12 @@ Chunk::Chunk(Mix_Chunk* chunk) : chunk_(chunk) { } 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"); } 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"); } diff --git a/SDL2pp/Music.cc b/SDL2pp/Music.cc index ec7eb1c..8dd2206 100644 --- a/SDL2pp/Music.cc +++ b/SDL2pp/Music.cc @@ -28,7 +28,7 @@ Music::Music(Mix_Music* music) : music_(music) { } 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"); } diff --git a/SDL2pp/Rect.cc b/SDL2pp/Rect.cc index c1bf0b5..68d12f4 100644 --- a/SDL2pp/Rect.cc +++ b/SDL2pp/Rect.cc @@ -100,7 +100,7 @@ std::ostream& operator<<(std::ostream& stream, const SDL2pp::Rect& rect) { } 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.w == b.w) return a.h < b.h;