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.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/soundeffect.h') diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h index b8c9e8735..5f3676064 100644 --- a/src/resources/soundeffect.h +++ b/src/resources/soundeffect.h @@ -46,7 +46,7 @@ class SoundEffect : public Resource * @return NULL if the an error occurred, a valid pointer * otherwise. */ - static Resource *load(SDL_RWops *rw); + static Resource *load(SDL_RWops *const rw); /** * Plays the sample. @@ -58,13 +58,14 @@ class SoundEffect : public Resource * @return true if the playback started properly * false otherwise. */ - virtual bool play(int loops, int volume, int channel = -1); + virtual bool play(const int loops, const int volume, + const int channel = -1); protected: /** * Constructor. */ - SoundEffect(Mix_Chunk *soundEffect) : + SoundEffect(Mix_Chunk *const soundEffect) : mChunk(soundEffect) { } -- cgit v1.2.3-60-g2f50