From 783b6348f4a4bc658cca214537a43d911c91f3b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Dec 2016 16:31:38 +0300 Subject: Add constexpr into soundmanager. --- src/soundmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2