summaryrefslogtreecommitdiff
path: root/sax/source/tools/fastattribs.cxx
diff options
context:
space:
mode:
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';