Simplify nullptr comparisons where appropriate
authorMichael Schuster <michael@schuster.ms>
Wed, 10 Jun 2020 01:47:49 +0000 (03:47 +0200)
committerMichael Schuster <michael@schuster.ms>
Wed, 10 Jun 2020 22:27:30 +0000 (00:27 +0200)
commit456c1eadbea6d88bb0c0b29f39af4f354d88f88c
treec7aeec9763830c6b4dd78e851f39485b3a932fd1
parent3f685fd93303d5e0338c49acd7eddb1a7bdd6963
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>
20 files changed:
shell_integration/windows/OCContextMenu/OCContextMenuFactory.cpp
shell_integration/windows/OCContextMenu/OCContextMenuRegHandler.cpp
shell_integration/windows/OCOverlays/OCOverlayFactory.cpp
shell_integration/windows/OCOverlays/OCOverlayRegistrationHandler.cpp
src/common/utility_mac.cpp
src/csync/csync.cpp
src/csync/csync_update.cpp
src/csync/csync_util.cpp
src/csync/std/c_utf8.cpp
src/csync/vio/csync_vio.cpp
src/csync/vio/csync_vio_local_unix.cpp
src/csync/vio/csync_vio_local_win.cpp
src/gui/accountsettings.cpp
src/gui/folderman.cpp
src/gui/folderwatcher_linux.cpp
src/gui/owncloudgui.cpp
src/gui/systray.cpp
src/gui/tray/UserModel.cpp
src/libsync/bandwidthmanager.cpp
test/csync/encoding_tests/check_encoding.cpp