diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:05:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:23 +0100 |
commit | f365f652f5721639a9787e1fddeb101045782c5c (patch) | |
tree | b2ca25a477fb405c8a3f5b3f0ab2938f4b104a36 /lotuswordpro | |
parent | Clean up C-style casts from pointers to void (diff) | |
download | core-f365f652f5721639a9787e1fddeb101045782c5c.tar.gz core-f365f652f5721639a9787e1fddeb101045782c5c.zip |
Clean up C-style casts from pointers to void
Change-Id: Iad2178f516b4a123175008efcc485fd6812f1027
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/benval.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwptools.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/benval.cxx b/lotuswordpro/source/filter/benval.cxx index 06f45fe26cd2..db505a84035f 100644 --- a/lotuswordpro/source/filter/benval.cxx +++ b/lotuswordpro/source/filter/benval.cxx @@ -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 diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index 72a86e04f8ec..3b1516dafa41 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -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); } |