summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:05:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:23 +0100
commitf365f652f5721639a9787e1fddeb101045782c5c (patch)
treeb2ca25a477fb405c8a3f5b3f0ab2938f4b104a36 /lotuswordpro
parent1baf49d146d4cc870bf095fd1498339d18ef97b6 (diff)
Clean up C-style casts from pointers to void
Change-Id: Iad2178f516b4a123175008efcc485fd6812f1027
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/benval.cxx2
-rw-r--r--lotuswordpro/source/filter/lwptools.cxx4
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);
}