Kaydet (Commit) f365f652 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up C-style casts from pointers to void

Change-Id: Iad2178f516b4a123175008efcc485fd6812f1027
üst 1baf49d1
...@@ -77,7 +77,7 @@ CBenValue::ReadValueData(BenDataPtr pReadBuffer, unsigned long Offset, ...@@ -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) ...@@ -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() ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment