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/music.h | |
parent | 0534847df83047f1ce2605187d45a762ffeae11e (diff) | |
download | mv-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.gz mv-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.bz2 mv-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.xz mv-fa21c1b65dbe91a1e6ac880db977416162f268df.zip |
Add const to more classes.
Diffstat (limited to 'src/resources/music.h')
-rw-r--r-- | src/resources/music.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/music.h b/src/resources/music.h index 88cc752bc..0afbb428b 100644 --- a/src/resources/music.h +++ b/src/resources/music.h @@ -46,7 +46,7 @@ class Music : 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 music. @@ -58,13 +58,13 @@ class Music : public Resource * @return <code>true</code> if the playback started properly * <code>false</code> otherwise. */ - bool play(int loops = -1, int fadeIn = 0); + bool play(const int loops = -1, const int fadeIn = 0); protected: /** * Constructor. */ - Music(Mix_Music *music); + Music(Mix_Music *const music); Mix_Music *mMusic; }; |