diff options
author | Gianluca Recchia <gianluca.recchia97@gmail.com> | 2018-10-28 17:47:24 +0300 |
---|---|---|
committer | Gianluca Recchia <gianluca.recchia97@gmail.com> | 2018-10-31 17:16:04 +0300 |
commit | 896a66e6d815e9122d5f26831a193226076feb9e (patch) | |
tree | 0ea2ba61bc6fd1affd36db1a33c22717e60e6409 /src/gui/DatabaseOpenWidget.cpp | |
parent | 7208635502a21e565b1b613504709e1d161a39a0 (diff) |
Improve readability and type-safety
Use nullptr instead of 0 or NULL to initialize a null pointer. In some
cases, readability was enhanced by replacing 0 with more meaningful
values according to the type of the pointer being initialized.
Diffstat (limited to 'src/gui/DatabaseOpenWidget.cpp')
-rw-r--r-- | src/gui/DatabaseOpenWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/DatabaseOpenWidget.cpp b/src/gui/DatabaseOpenWidget.cpp index 892c41d3e..4d906db35 100644 --- a/src/gui/DatabaseOpenWidget.cpp +++ b/src/gui/DatabaseOpenWidget.cpp @@ -122,7 +122,7 @@ void DatabaseOpenWidget::hideEvent(QHideEvent* event) #ifdef WITH_XC_YUBIKEY // Don't listen to any Yubikey events if we are hidden - disconnect(YubiKey::instance(), 0, this, 0); + disconnect(YubiKey::instance(), nullptr, this, nullptr); m_yubiKeyBeingPolled = false; #endif } |