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

Stephan Bergmann sbergman at redhat.com
Tue Jul 18 15:31:19 UTC 2017


 svl/source/crypto/cryptosign.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c7911bb582eee0b470904b740f5f092d689d97ee
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jul 18 17:29:57 2017 +0200

    loplugin:redundantcast (clang-cl)
    
    Change-Id: I9567aa4326cd70dd46fbbae53e1cb63b105e5df5

diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index e0319a1e9e97..2349b17661de 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -773,7 +773,7 @@ bool CreateSigningCertificateAttribute(void* pDerEncoded, int nDerEncoded, PCCER
         return false;
     }
 
-    if (!CryptHashData(hHash, reinterpret_cast<const BYTE*>(pDerEncoded), nDerEncoded, 0))
+    if (!CryptHashData(hHash, static_cast<const BYTE*>(pDerEncoded), nDerEncoded, 0))
     {
         SAL_WARN("svl.crypto", "CryptHashData() failed");
         return false;


More information about the Libreoffice-commits mailing list