loplugin:cstylecast (clang-cl)

Change-Id: I1d9b30cc06882b7662ef5d706be52755e02323ed
This commit is contained in:
Stephan Bergmann 2017-09-14 08:39:58 +02:00
parent d8655c09a9
commit c3711e3ea6

View File

@ -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");