diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-04-09 15:25:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-04-09 16:36:57 +0200 |
commit | bbcf3a2dd4d02b90397cafcb41d539dba79c9204 (patch) | |
tree | 6e1cec9571ae152f712a478a74125e33d188f428 /vcl/win | |
parent | 15a97bcaf17f0f3bc64efd1239c365868480ec43 (diff) |
loplugin:nullptr (clang-cl)
Change-Id: I41a8fa48b762d8f4da1c23785a86d651cfb4aa89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113851
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/app/fileregistration.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/app/fileregistration.cxx b/vcl/win/app/fileregistration.cxx index 2555cede8d2d..2347e46c4b61 100644 --- a/vcl/win/app/fileregistration.cxx +++ b/vcl/win/app/fileregistration.cxx @@ -91,11 +91,11 @@ static bool IsDefaultAppInstalledInReg() return false; WCHAR szProcPath[MAX_LONG_PATH]; - if (!GetModuleFileNameW(NULL, szProcPath, MAX_LONG_PATH)) + if (!GetModuleFileNameW(nullptr, szProcPath, MAX_LONG_PATH)) return false; WCHAR szFullProcPath[MAX_LONG_PATH]; - if (!GetFullPathNameW(szProcPath, MAX_LONG_PATH, szFullProcPath, NULL)) + if (!GetFullPathNameW(szProcPath, MAX_LONG_PATH, szFullProcPath, nullptr)) return false; if (!GetLongPathNameW(szFullProcPath, szFullProcPath, MAX_LONG_PATH)) @@ -104,7 +104,7 @@ static bool IsDefaultAppInstalledInReg() if (!GetLongPathNameW(szRegPath, szRegPath, MAX_LONG_PATH)) return false; - if (wcslen(szRegPath) > 0 && wcsstr(szFullProcPath, szRegPath) != NULL) + if (wcslen(szRegPath) > 0 && wcsstr(szFullProcPath, szRegPath) != nullptr) return true; return false; |