mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Whitespace fixes
This commit is contained in:
parent
bc779af5d1
commit
4ab3906b07
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user