diff options
author | Popkornium18 <mail@popkornium18.de> | 2020-06-27 01:44:55 +0300 |
---|---|---|
committer | Popkornium18 <mail@popkornium18.de> | 2020-06-27 14:38:37 +0300 |
commit | 01db6e219d098a2eccbb7b72ef3a24ad6c2dbbda (patch) | |
tree | a0d5dc517799c08698b9f8f7ca0a4e039d478436 /src/mumble/TextToSpeech_unix.cpp | |
parent | b1e8910c606c9f4e88e0f9016b54367643762696 (diff) |
REFAC(client): replace NULL and Q_NULLPTR with nullptr
This changes all occurances of NULL and Q_NULLPTR in the mumble source
dir to nullptr. Additionally comparisons with NULL were changed to `if
(pointer)` if it would not be confusing. (e.g. booleans as parameters `
setEnabled(pointer != nullptr)`)
Diffstat (limited to 'src/mumble/TextToSpeech_unix.cpp')
-rw-r--r-- | src/mumble/TextToSpeech_unix.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mumble/TextToSpeech_unix.cpp b/src/mumble/TextToSpeech_unix.cpp index bce35592c..575e87efd 100644 --- a/src/mumble/TextToSpeech_unix.cpp +++ b/src/mumble/TextToSpeech_unix.cpp @@ -39,13 +39,13 @@ class TextToSpeechPrivate { TextToSpeechPrivate::TextToSpeechPrivate() { initialized = false; volume = -1; - spd = NULL; + spd = nullptr; } TextToSpeechPrivate::~TextToSpeechPrivate() { if (spd) { spd_close(spd); - spd = NULL; + spd = nullptr; } } @@ -54,7 +54,7 @@ void TextToSpeechPrivate::ensureInitialized() { return; } - spd = spd_open("Mumble", NULL, NULL, SPD_MODE_THREADED); + spd = spd_open("Mumble", nullptr, nullptr, SPD_MODE_THREADED); if (! spd) { qWarning("TextToSpeech: Failed to contact speech dispatcher."); } else { |