summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:25 +0100
commit8d6c8d7fa0a4c56ebcf9d141d8cd99706d756991 (patch)
tree1c9019f303caa7b630c9f4ed235ae9087c696b57 /sdext
parent51ec44fe04de4cad43a6bbd8dae4411a763c1e7e (diff)
Clean up C-style casts from pointers to void
Change-Id: I525293c6baaa2ab13db8f3205782a0d206d9d7ca
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx4
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfparse.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
index 581ecc868e6d..7f7bb7f0ed5b 100644
--- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
@@ -736,7 +736,7 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen,
const unsigned int buf_increment_size = 16384;
- *pOutBuf = (sal_uInt8*)rtl_reallocateMemory( *pOutBuf, buf_increment_size );
+ *pOutBuf = static_cast<sal_uInt8*>(rtl_reallocateMemory( *pOutBuf, buf_increment_size ));
aZStr.next_out = (Bytef*)*pOutBuf;
aZStr.avail_out = buf_increment_size;
*pOutLen = buf_increment_size;
@@ -748,7 +748,7 @@ static void unzipToBuffer( char* pBegin, unsigned int nLen,
if( err != Z_STREAM_END )
{
const int nNewAlloc = *pOutLen + buf_increment_size;
- *pOutBuf = (sal_uInt8*)rtl_reallocateMemory( *pOutBuf, nNewAlloc );
+ *pOutBuf = static_cast<sal_uInt8*>(rtl_reallocateMemory( *pOutBuf, nNewAlloc ));
aZStr.next_out = (Bytef*)(*pOutBuf + *pOutLen);
aZStr.avail_out = buf_increment_size;
*pOutLen = nNewAlloc;
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
index 21c191c3c97b..ae8736115c79 100644
--- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
@@ -52,7 +52,7 @@ class StringEmitContext : public EmitContext
virtual ~StringEmitContext() {}
virtual bool write( const void* pBuf, unsigned int nLen ) throw() SAL_OVERRIDE
{
- m_aBuf.append( (const sal_Char*)pBuf, nLen );
+ m_aBuf.append( static_cast<const sal_Char*>(pBuf), nLen );
return true;
}
virtual unsigned int getCurPos() throw() SAL_OVERRIDE { return m_aBuf.getLength(); }