summaryrefslogtreecommitdiff
path: root/src/resources/music.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
commitfa21c1b65dbe91a1e6ac880db977416162f268df (patch)
tree7fa06ef18a171d62ff892c99e710d4df7aff91b5 /src/resources/music.cpp
parent0534847df83047f1ce2605187d45a762ffeae11e (diff)
downloadmv-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.cpp')
-rw-r--r--src/resources/music.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/music.cpp b/src/resources/music.cpp
index b13812f18..1b66e6bad 100644
--- a/src/resources/music.cpp
+++ b/src/resources/music.cpp
@@ -26,7 +26,7 @@
#include "debug.h"
-Music::Music(Mix_Music *music) :
+Music::Music(Mix_Music *const music) :
mMusic(music)
{
}
@@ -36,9 +36,9 @@ Music::~Music()
Mix_FreeMusic(mMusic);
}
-Resource *Music::load(SDL_RWops *rw)
+Resource *Music::load(SDL_RWops *const rw)
{
- if (Mix_Music *music = Mix_LoadMUS_RW(rw))
+ if (Mix_Music *const music = Mix_LoadMUS_RW(rw))
{
return new Music(music);
}
@@ -49,7 +49,7 @@ Resource *Music::load(SDL_RWops *rw)
}
}
-bool Music::play(int loops, int fadeIn)
+bool Music::play(const int loops, const int fadeIn)
{
if (fadeIn > 0)
return Mix_FadeInMusic(mMusic, loops, fadeIn);