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/ManualPlugin.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/ManualPlugin.cpp')
-rw-r--r-- | src/mumble/ManualPlugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mumble/ManualPlugin.cpp b/src/mumble/ManualPlugin.cpp index c89134f60..8849a8e9c 100644 --- a/src/mumble/ManualPlugin.cpp +++ b/src/mumble/ManualPlugin.cpp @@ -17,7 +17,7 @@ #include "../../plugins/mumble_plugin.h" -static QPointer<Manual> mDlg = NULL; +static QPointer<Manual> mDlg = nullptr; static bool bLinkable = false; static bool bActive = true; @@ -113,7 +113,7 @@ void Manual::changeEvent(QEvent *e) { void Manual::on_qpbUnhinge_pressed() { qpbUnhinge->setEnabled(false); - mDlg->setParent(NULL); + mDlg->setParent(nullptr); mDlg->show(); } @@ -287,8 +287,8 @@ static MumblePlugin manual = { MUMBLE_PLUGIN_MAGIC, description, shortname, - NULL, // About is handled by MumblePluginQt - NULL, // Config is handled by MumblePluginQt + nullptr, // About is handled by MumblePluginQt + nullptr, // Config is handled by MumblePluginQt trylock, unlock, longdesc, |