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/music.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/music.h') 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 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 music. @@ -58,13 +58,13 @@ class Music : public Resource * @return true if the playback started properly * false 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; }; -- cgit v1.2.3-60-g2f50