summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 16:31:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 16:31:38 +0300
commit783b6348f4a4bc658cca214537a43d911c91f3b3 (patch)
treefb356b2bc0052c9e576f159b9758f3b5aaf762de /src
parent8931206816513e78b903b4d489aa9e3057cfa915 (diff)
downloadmv-783b6348f4a4bc658cca214537a43d911c91f3b3.tar.gz
mv-783b6348f4a4bc658cca214537a43d911c91f3b3.tar.bz2
mv-783b6348f4a4bc658cca214537a43d911c91f3b3.tar.xz
mv-783b6348f4a4bc658cca214537a43d911c91f3b3.zip
Add constexpr into soundmanager.
Diffstat (limited to 'src')
-rw-r--r--src/soundmanager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soundmanager.h b/src/soundmanager.h
index 4efc24542..4e773c8db 100644
--- a/src/soundmanager.h
+++ b/src/soundmanager.h
@@ -106,7 +106,7 @@ class SoundManager final : public ConfigListener
void fadeOutAndPlayMusic(const std::string &fileName,
const int ms = 1000);
- static int getMaxVolume() A_WARN_UNUSED
+ constexpr static int getMaxVolume() A_WARN_UNUSED
{ return MIX_MAX_VOLUME; }
void setMusicVolume(const int volume);