Clean up C-style casts from pointers to void
Change-Id: Iad2178f516b4a123175008efcc485fd6812f1027
This commit is contained in:
@@ -77,7 +77,7 @@ CBenValue::ReadValueData(BenDataPtr pReadBuffer, unsigned long Offset,
|
|||||||
*pAmtRead = 0;
|
*pAmtRead = 0;
|
||||||
pCBenValueSegment pCurrSeg = NULL;
|
pCBenValueSegment pCurrSeg = NULL;
|
||||||
pLtcBenContainer pContainer = GetContainer();
|
pLtcBenContainer pContainer = GetContainer();
|
||||||
BenByteDataPtr pBuffer = (BenByteDataPtr) pReadBuffer;
|
BenByteDataPtr pBuffer = static_cast<BenByteDataPtr>(pReadBuffer);
|
||||||
|
|
||||||
/// pReadBuffer -- pointer to buffer of read result, allocated outside this function
|
/// 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
|
/// Offset -- read buffer's start offset address, relative value in the whole value stream
|
||||||
|
@@ -266,7 +266,7 @@ XFDateStyle* LwpTools::GetSystemDateStyle(bool bLongFormat)
|
|||||||
{
|
{
|
||||||
status = U_ZERO_ERROR;
|
status = U_ZERO_ERROR;
|
||||||
nLength = nLengthNeed +1;
|
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);
|
udat_toPattern(reinterpret_cast<void **>(fmt),sal_False,pattern,nLength,&status);
|
||||||
}
|
}
|
||||||
if (pattern == NULL)
|
if (pattern == NULL)
|
||||||
@@ -654,7 +654,7 @@ XFTimeStyle* LwpTools::GetSystemTimeStyle()
|
|||||||
{
|
{
|
||||||
status = U_ZERO_ERROR;
|
status = U_ZERO_ERROR;
|
||||||
nLength = nLengthNeed +1;
|
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);
|
udat_toPattern(reinterpret_cast<void **>(fmt),false,pattern,nLength,&status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user