diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2020-02-05 14:34:41 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2020-02-10 18:41:07 +0300 |
commit | fc69d5271e674bde6b71ba46b1d86588b9b30705 (patch) | |
tree | 9b239a78d1404755ff151cdceb4943b57870c6b8 /src/csync/vio | |
parent | 146d75a2d601509157a0fcd981ef0209926e7d6c (diff) |
Run clang-tidy check for modernize-use-nullptr
Diffstat (limited to 'src/csync/vio')
-rw-r--r-- | src/csync/vio/csync_vio_local_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csync/vio/csync_vio_local_unix.cpp b/src/csync/vio/csync_vio_local_unix.cpp index d11085acb..544d80f73 100644 --- a/src/csync/vio/csync_vio_local_unix.cpp +++ b/src/csync/vio/csync_vio_local_unix.cpp @@ -74,12 +74,12 @@ int csync_vio_local_closedir(csync_vio_handle_t *dhandle) { std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *handle, OCC::Vfs *vfs) { - struct _tdirent *dirent = NULL; + struct _tdirent *dirent = nullptr; std::unique_ptr<csync_file_stat_t> file_stat; do { dirent = _treaddir(handle->dh); - if (dirent == NULL) + if (dirent == nullptr) return {}; } while (qstrcmp(dirent->d_name, ".") == 0 || qstrcmp(dirent->d_name, "..") == 0); |