summaryrefslogtreecommitdiff
path: root/sax/source/tools/fastattribs.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:24 +0100
commita98887d9b82327d4183d24a56ec0636953515aa3 (patch)
tree6426410cbfc3d689aea801bc08268b26ff4dfcc8 /sax/source/tools/fastattribs.cxx
parentd57d81e529a44d8042401e36057a69ebe97e870a (diff)
Clean up C-style casts from pointers to void
Change-Id: Iacd5275ba41e49eebd3977f57d0b8b68acafa2c4
Diffstat (limited to 'sax/source/tools/fastattribs.cxx')
-rw-r--r--sax/source/tools/fastattribs.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 15b555efe2ba..cb97acccf21c 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -59,7 +59,7 @@ FastAttributeList::FastAttributeList( const ::com::sun::star::uno::Reference< ::
{
// random initial size of buffer to store attribute values
mnChunkLength = 58;
- mpChunk = (sal_Char *) malloc( mnChunkLength );
+ mpChunk = static_cast<sal_Char *>(malloc( mnChunkLength ));
maAttributeValues.push_back( 0 );
}
@@ -85,7 +85,7 @@ void FastAttributeList::add( sal_Int32 nToken, const sal_Char* pValue, size_t nV
if (maAttributeValues.back() > mnChunkLength)
{
mnChunkLength = maAttributeValues.back();
- mpChunk = (sal_Char *) realloc( mpChunk, mnChunkLength );
+ mpChunk = static_cast<sal_Char *>(realloc( mpChunk, mnChunkLength ));
}
strncpy(mpChunk + nWritePosition, pValue, nValueLength);
mpChunk[nWritePosition + nValueLength] = '\0';