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/folderwatcher_linux.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/folderwatcher_linux.cpp')
-rw-r--r--src/gui/folderwatcher_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderwatcher_linux.cpp b/src/gui/folderwatcher_linux.cpp
index f1acf6cd3..440927fbc 100644
--- a/src/gui/folderwatcher_linux.cpp
+++ b/src/gui/folderwatcher_linux.cpp
@@ -158,7 +158,7 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd)
while (i + sizeof(struct inotify_event) < static_cast<unsigned int>(len)) {
// cast an inotify_event
event = (struct inotify_event *)&buffer[i];
- if (event == nullptr) {
+ if (!event) {
qCDebug(lcFolderWatcher) << "NULL event";
i += sizeof(struct inotify_event);
continue;