Clean up C-style casts from pointers to void

Change-Id: Iad2178f516b4a123175008efcc485fd6812f1027
This commit is contained in:
Stephan Bergmann
2015-03-28 19:05:15 +01:00
parent 1baf49d146
commit f365f652f5
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ CBenValue::ReadValueData(BenDataPtr pReadBuffer, unsigned long Offset,
*pAmtRead = 0;
pCBenValueSegment pCurrSeg = NULL;
pLtcBenContainer pContainer = GetContainer();
BenByteDataPtr pBuffer = (BenByteDataPtr) pReadBuffer;
BenByteDataPtr pBuffer = static_cast<BenByteDataPtr>(pReadBuffer);
/// pReadBuffer -- pointer to buffer of read result, allocated outside this function
/// Offset -- read buffer's start offset address, relative value in the whole value stream

View File

@@ -266,7 +266,7 @@ XFDateStyle* LwpTools::GetSystemDateStyle(bool bLongFormat)
{
status = U_ZERO_ERROR;
nLength = nLengthNeed +1;
pattern = (UChar*)malloc(sizeof(UChar)*nLength);
pattern = static_cast<UChar*>(malloc(sizeof(UChar)*nLength));
udat_toPattern(reinterpret_cast<void **>(fmt),sal_False,pattern,nLength,&status);
}
if (pattern == NULL)
@@ -654,7 +654,7 @@ XFTimeStyle* LwpTools::GetSystemTimeStyle()
{
status = U_ZERO_ERROR;
nLength = nLengthNeed +1;
pattern = (UChar*)malloc(sizeof(UChar)*nLength);
pattern = static_cast<UChar*>(malloc(sizeof(UChar)*nLength));
udat_toPattern(reinterpret_cast<void **>(fmt),false,pattern,nLength,&status);
}