summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-14 08:39:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-14 08:39:58 +0200
commitc3711e3ea676e0ee0bb1a6bc43a57e735ee586fe (patch)
tree3621aa04d683af643226fdefde34a53fe2153d76 /svl
parentd8655c09a946e9eac3a8be75a23a1516863d60e7 (diff)
loplugin:cstylecast (clang-cl)
Change-Id: I1d9b30cc06882b7662ef5d706be52755e02323ed
Diffstat (limited to 'svl')
-rw-r--r--svl/source/crypto/cryptosign.cxx3
1 files changed, 2 insertions, 1 deletions
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");