From: Tobias Markus Date: Tue, 17 Mar 2015 16:21:25 +0000 (+0100) Subject: Constify a couple more methods X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7310976f86e58791a33797cbaa6ee5db3dca162d;p=supertux.git Constify a couple more methods --- diff --git a/src/audio/sound_manager.hpp b/src/audio/sound_manager.hpp index 102b0a89c..39b2e78bb 100644 --- a/src/audio/sound_manager.hpp +++ b/src/audio/sound_manager.hpp @@ -68,10 +68,10 @@ public: void resume_music(float fadetime = 0); void stop_music(float fadetime = 0); - bool is_music_enabled() { return music_enabled; } - bool is_sound_enabled() { return sound_enabled; } + bool is_music_enabled() const { return music_enabled; } + bool is_sound_enabled() const { return sound_enabled; } - bool is_audio_enabled() { + bool is_audio_enabled() const { return device != 0 && context != 0; } std::string get_current_music() const {