diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
commit | 5afe88df2538274859a162ffd63ed52118e80c19 (patch) | |
tree | b610dfd58dc748fd63f49565b2a43eea2316714f /src/sound.cpp | |
parent | 73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff) | |
download | mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2 mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz mana-5afe88df2538274859a162ffd63ed52118e80c19.zip |
Apply C++11 fixits
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 44f55cba..60cc2c10 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -54,7 +54,7 @@ Sound::Sound(): mSfxVolume(100), mNotificationsVolume(100), mMusicVolume(60), - mMusic(NULL) + mMusic(nullptr) { // This set up our callback function used to // handle fade outs endings. @@ -65,7 +65,7 @@ Sound::Sound(): Sound::~Sound() { // Unlink the callback function. - Mix_HookMusicFinished(NULL); + Mix_HookMusicFinished(nullptr); } void Sound::init() @@ -252,7 +252,7 @@ void Sound::logic() if (mMusic) { mMusic->decRef(); - mMusic = 0; + mMusic = nullptr; } sFadingOutEnded = false; @@ -327,5 +327,5 @@ void Sound::haltMusic() Mix_HaltMusic(); mMusic->decRef(); - mMusic = 0; + mMusic = nullptr; } |