Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schuster <michael@schuster.ms>2020-06-10 04:47:49 +0300
committerMichael Schuster <michael@schuster.ms>2020-06-11 01:27:30 +0300
commit456c1eadbea6d88bb0c0b29f39af4f354d88f88c (patch)
treec7aeec9763830c6b4dd78e851f39485b3a932fd1 /src/gui/systray.cpp
parent3f685fd93303d5e0338c49acd7eddb1a7bdd6963 (diff)
Simplify nullptr comparisons where appropriate
Make the codebase consistent, we already have a lot of implicit pointer comparisons. Exception: Stay explicit on return's, example: return _db != nullptr; Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/systray.cpp')
-rw-r--r--src/gui/systray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp
index 0c7674d73..66ac956f2 100644
--- a/src/gui/systray.cpp
+++ b/src/gui/systray.cpp
@@ -40,7 +40,7 @@ Systray *Systray::_instance = nullptr;
Systray *Systray::instance()
{
- if (_instance == nullptr) {
+ if (!_instance) {
_instance = new Systray();
}
return _instance;