From fa21c1b65dbe91a1e6ac880db977416162f268df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 3 Sep 2012 00:32:00 +0300 Subject: Add const to more classes. --- src/resources/soundeffect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/soundeffect.cpp') diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp index 6a3a980a7..d142626b5 100644 --- a/src/resources/soundeffect.cpp +++ b/src/resources/soundeffect.cpp @@ -31,12 +31,12 @@ SoundEffect::~SoundEffect() Mix_FreeChunk(mChunk); } -Resource *SoundEffect::load(SDL_RWops *rw) +Resource *SoundEffect::load(SDL_RWops *const rw) { if (!rw) return nullptr; // Load the music data and free the RWops structure - Mix_Chunk *tmpSoundEffect = Mix_LoadWAV_RW(rw, 1); + Mix_Chunk *const tmpSoundEffect = Mix_LoadWAV_RW(rw, 1); if (tmpSoundEffect) { @@ -49,7 +49,7 @@ Resource *SoundEffect::load(SDL_RWops *rw) } } -bool SoundEffect::play(int loops, int volume, int channel) +bool SoundEffect::play(const int loops, const int volume, const int channel) { Mix_VolumeChunk(mChunk, volume); -- cgit v1.2.3-60-g2f50