diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-03 00:32:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-03 00:32:00 +0300 |
commit | fa21c1b65dbe91a1e6ac880db977416162f268df (patch) | |
tree | 7fa06ef18a171d62ff892c99e710d4df7aff91b5 /src/resources/soundeffect.h | |
parent | 0534847df83047f1ce2605187d45a762ffeae11e (diff) | |
download | manaverse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.gz manaverse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.bz2 manaverse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.xz manaverse-fa21c1b65dbe91a1e6ac880db977416162f268df.zip |
Add const to more classes.
Diffstat (limited to 'src/resources/soundeffect.h')
-rw-r--r-- | src/resources/soundeffect.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 <code>NULL</code> 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 <code>true</code> if the playback started properly * <code>false</code> 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) { } |