summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlrowi.cxx
diff options
context:
space:
mode:
authorMohammed Abdul Azeem <azeemmysore@gmail.com>2017-07-09 17:02:06 +0530
committerMichael Meeks <michael.meeks@collabora.com>2017-07-11 12:22:36 +0200
commitb401896a56149aa2871b65a330a6f601a9830ccd (patch)
tree8a8d31fdca5d47794442fab4c8c28be592b5e178 /sc/source/filter/xml/xmlrowi.cxx
parent4f41e8810d67bd3d82e1ff40b23a9131921674a2 (diff)
Helper function to cast to FastAttributeList:
Refactoring codes that cast XFastAttributeList reference to FastAttributeList pointer using the helper function. Change-Id: Iecf4b815d6556b0992d638b633260fbd459c0dc4 Reviewed-on: https://gerrit.libreoffice.org/39723 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/filter/xml/xmlrowi.cxx')
-rw-r--r--sc/source/filter/xml/xmlrowi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlrowi.cxx b/sc/source/filter/xml/xmlrowi.cxx
index 41c6defe29fd..b27c08baa782 100644
--- a/sc/source/filter/xml/xmlrowi.cxx
+++ b/sc/source/filter/xml/xmlrowi.cxx
@@ -54,7 +54,7 @@ ScXMLTableRowContext::ScXMLTableRowContext( ScXMLImport& rImport,
if ( xAttrList.is() )
{
sax_fastparser::FastAttributeList *pAttribList =
- static_cast< sax_fastparser::FastAttributeList *>( xAttrList.get() );
+ sax_fastparser::FastAttributeList::castToFastAttributeList( xAttrList );
for( auto &it : *pAttribList )
{
@@ -230,7 +230,7 @@ ScXMLTableRowsContext::ScXMLTableRowsContext( ScXMLImport& rImport,
if ( xAttrList.is() )
{
sax_fastparser::FastAttributeList *pAttribList =
- static_cast< sax_fastparser::FastAttributeList *>( xAttrList.get() );
+ sax_fastparser::FastAttributeList::castToFastAttributeList( xAttrList );
auto &aIter( pAttribList->find( XML_ELEMENT( TABLE, XML_DISPLAY ) ) );
if( aIter != pAttribList->end() )
bGroupDisplay = IsXMLToken( aIter, XML_TRUE );