diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-24 13:35:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-24 13:35:36 +0200 |
commit | a41ecf922771904cdebf17b29066389441716b2c (patch) | |
tree | e1579addc718e30db872f3dcc030861031393f7e /xmloff/source/style | |
parent | 258d039798b9ca4cc95a14d62e30bb725ad2c8ec (diff) |
loplugin:expandablemethods in xmloff
Change-Id: I995a4167ac4df5ca35d963dcf68ae802a997e1e1
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 3790e79eaafd..98b5c4690539 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -320,14 +320,6 @@ void SvXMLNumFmtExport::AddCalendarAttr_Impl( const OUString& rCalendar ) } } -void SvXMLNumFmtExport::AddTextualAttr_Impl( bool bText ) -{ - if ( bText ) // non-textual - { - rExport.AddAttribute( XML_NAMESPACE_NUMBER, XML_TEXTUAL, XML_TRUE ); - } -} - void SvXMLNumFmtExport::AddStyleAttr_Impl( bool bLong ) { if ( bLong ) // short is default @@ -436,7 +428,10 @@ void SvXMLNumFmtExport::WriteMonthElement_Impl( const OUString& rCalendar, bool AddCalendarAttr_Impl( rCalendar ); // adds to pAttrList AddStyleAttr_Impl( bLong ); // adds to pAttrList - AddTextualAttr_Impl( bText ); // adds to pAttrList + if ( bText ) + { + rExport.AddAttribute( XML_NAMESPACE_NUMBER, XML_TEXTUAL, XML_TRUE ); + } SvXMLElementExport aElem( rExport, XML_NAMESPACE_NUMBER, XML_MONTH, true, false ); |