From 01db6e219d098a2eccbb7b72ef3a24ad6c2dbbda Mon Sep 17 00:00:00 2001 From: Popkornium18 Date: Sat, 27 Jun 2020 00:44:55 +0200 Subject: 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)`) --- src/mumble/TextToSpeech_unix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mumble/TextToSpeech_unix.cpp') 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 { -- cgit v1.2.3