diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 16:12:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-09 08:28:56 +0200 |
commit | 719a2adfbdac8ce26a035e5fedeeaade8706832d (patch) | |
tree | 541a185d2c60d83da75306bab6bd93527c9b4d73 /xmloff | |
parent | 4763091bbecab8722a43d0ed73eafc0a1f596242 (diff) |
remove unnecessary empty OUString fields and vars
Change-Id: I940120087a0bc6b1b0abc30a3e7727ce22b7d9a7
Reviewed-on: https://gerrit.libreoffice.org/37394
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 19bdfbf08b5a..c94a9dcc6191 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -1615,8 +1615,7 @@ void SdXMLTextBoxShapeContext::StartElement(const uno::Reference< xml::sax::XAtt if( bClearText ) { uno::Reference< text::XText > xText( mxShape, uno::UNO_QUERY ); - OUString aEmpty; - xText->setString( aEmpty ); + xText->setString( "" ); } // set parameters on shape @@ -3795,8 +3794,7 @@ void SdXMLCustomShapeContext::EndElement() Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY ); if( xDefaulter.is() ) { - OUString aEmptyType; - xDefaulter->createCustomShapeDefaults( aEmptyType ); + xDefaulter->createCustomShapeDefaults( "" ); } } } diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 5646ce4192ab..2f248359b58f 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1830,11 +1830,10 @@ OUString XMLTextImportHelper::SetStyleAndAttrs( !bOutlineStyleCandidate && m_xImpl->m_xChapterNumbering.is()) { - OUString sEmptyStr; if ( !lcl_HasListStyle( sStyleName, m_xImpl->m_xParaStyles, GetXMLImport(), "NumberingStyleName", - sEmptyStr ) ) + "" ) ) { // heading not in a list --> apply outline style xPropSet->setPropertyValue( s_NumberingRules, |