summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlictxt.cxx2
-rw-r--r--xmloff/source/core/xmlimp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/core/xmlictxt.cxx b/xmloff/source/core/xmlictxt.cxx
index 920e2981f02e..a16dfa2f0beb 100644
--- a/xmloff/source/core/xmlictxt.cxx
+++ b/xmloff/source/core/xmlictxt.cxx
@@ -94,7 +94,7 @@ void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString & rPrefix,
if ( Attribs.is() )
{
sax_fastparser::FastAttributeList *pAttribList =
- static_cast< sax_fastparser::FastAttributeList *>( Attribs.get() );
+ sax_fastparser::FastAttributeList::castToFastAttributeList( Attribs );
for( auto &it : *pAttribList )
{
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index a84cf8caabef..91e2a97148a3 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -791,7 +791,7 @@ void SAL_CALL SvXMLImport::startFastElement (sal_Int32 Element,
if ( Attribs.is() )
{
sax_fastparser::FastAttributeList *pAttribList =
- static_cast< sax_fastparser::FastAttributeList *>( Attribs.get() );
+ sax_fastparser::FastAttributeList::castToFastAttributeList( Attribs );
auto &aIter( pAttribList->find( XML_ELEMENT( OFFICE, XML_VERSION ) ) );
if( aIter != pAttribList->end() )
{