sal/osl/w32/module.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2796d4ab5c3cc3637d04b33a5e7f0dad4c90d408
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Jan 7 08:18:27 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Jan 7 09:48:17 2022 +0100

    loplugin:redundantcast
    
    Change-Id: Ia68f492ebd4ac81feb44e736c53f0f4a2d99274d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128096
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 57eec8b70012..8379e14b2fd5 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -178,7 +178,7 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress( void *pv, 
rtl_uString **pustrURL
     HMODULE hModule{};
     GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
                            | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
-                       reinterpret_cast<LPCWSTR>(pv), &hModule);
+                       static_cast<LPCWSTR>(pv), &hModule);
     if (!hModule)
         return false;
 

Reply via email to