vcl/win/app/fileregistration.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit bbcf3a2dd4d02b90397cafcb41d539dba79c9204
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Apr 9 15:25:58 2021 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Apr 9 16:36:57 2021 +0200

    loplugin:nullptr (clang-cl)
    
    Change-Id: I41a8fa48b762d8f4da1c23785a86d651cfb4aa89
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113851
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to