[Libreoffice-commits] core.git: extensions/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 30 21:00:15 UTC 2019


 extensions/source/scanner/scanwin.cxx     |    2 +-
 extensions/source/scanner/twain32shim.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2035b3ea5390f2d1d61a72b7c2e8f1193db3d2d2
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jan 30 14:31:45 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jan 30 21:59:43 2019 +0100

    loplugin:nullptr (clang-cl)
    
    Change-Id: Ief2ac9e55c042252e9e9b0f2334057af8602e087
    Reviewed-on: https://gerrit.libreoffice.org/67140
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index b8dfa273fce3..315b8677c832 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -231,7 +231,7 @@ void Twain::ShimListenerThread::execute()
 {
     MSG msg;
     // Initialize thread message queue before launching shim process
-    PeekMessageW(&msg, 0, 0, 0, PM_NOREMOVE);
+    PeekMessageW(&msg, nullptr, 0, 0, PM_NOREMOVE);
 
     try
     {
diff --git a/extensions/source/scanner/twain32shim.cxx b/extensions/source/scanner/twain32shim.cxx
index fd213fcd12cb..07ac599d584f 100644
--- a/extensions/source/scanner/twain32shim.cxx
+++ b/extensions/source/scanner/twain32shim.cxx
@@ -143,7 +143,7 @@ LRESULT CALLBACK ImpTwain::MsgHook(int nCode, WPARAM wParam, LPARAM lParam)
         }
     }
 
-    return CallNextHookEx(0, nCode, wParam, lParam);
+    return CallNextHookEx(nullptr, nCode, wParam, lParam);
 }
 
 HANDLE GetProcOfThread(HANDLE hThread)


More information about the Libreoffice-commits mailing list