From c3711e3ea676e0ee0bb1a6bc43a57e735ee586fe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 14 Sep 2017 08:39:58 +0200 Subject: loplugin:cstylecast (clang-cl) Change-Id: I1d9b30cc06882b7662ef5d706be52755e02323ed --- svl/source/crypto/cryptosign.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svl/source') 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( + LocalAlloc(LPTR, dwData * sizeof(TCHAR))); if (!szName) { SAL_WARN("svl.crypto", "ValidateSignature: Unable to allocate memory for subject name"); -- cgit