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

Stephan Bergmann sbergman at redhat.com
Thu Sep 14 06:40:26 UTC 2017


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

New commits:
commit c3711e3ea676e0ee0bb1a6bc43a57e735ee586fe
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Sep 14 08:39:58 2017 +0200

    loplugin:cstylecast (clang-cl)
    
    Change-Id: I1d9b30cc06882b7662ef5d706be52755e02323ed

diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index 952cdf5e0b6b..a6758519b7cd 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -1925,7 +1925,8 @@ OUString GetSubjectName(PCCERT_CONTEXT pCertContext)
     }
 
     // Allocate memory for subject name.
-    LPTSTR szName = (LPTSTR)LocalAlloc(LPTR, dwData * sizeof(TCHAR));
+    LPTSTR szName = static_cast<LPTSTR>(
+        LocalAlloc(LPTR, dwData * sizeof(TCHAR)));
     if (!szName)
     {
         SAL_WARN("svl.crypto", "ValidateSignature: Unable to allocate memory for subject name");


More information about the Libreoffice-commits mailing list