diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-17 14:54:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-18 05:48:29 +0000 |
commit | fc18da9178c851b17e9ecc3777166ae3037d3e8a (patch) | |
tree | fce22834561af167f919a5d8a9d78fd54c1dc5ba /reportdesign | |
parent | 43b5ca69aa545cf93eded55258d92d651917815f (diff) |
remove some double calls
found with
git grep -P '\W(\w+)\s*\(\s*\W'
Change-Id: Ia93f83193959c72dcc15c5c1bf54e805b43f14e5
Reviewed-on: https://gerrit.libreoffice.org/30934
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlStyleImport.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx index b32ccf6d5b68..3d98f0e74c7a 100644 --- a/reportdesign/source/filter/xml/xmlStyleImport.cxx +++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx @@ -292,7 +292,7 @@ Reference < XNameContainer > Reference < XNameContainer > xStyles(SvXMLStylesContext::GetStylesContainer(nFamily)); if (!xStyles.is()) { - OUString sName; + OUString sName; switch( nFamily ) { case XML_STYLE_FAMILY_TABLE_TABLE: @@ -300,8 +300,7 @@ Reference < XNameContainer > if( m_xTableStyles.is() ) xStyles.set(m_xTableStyles); else - sName = - OUString( OUString( "TableStyles" )); + sName = "TableStyles"; } break; case XML_STYLE_FAMILY_TABLE_CELL: @@ -309,8 +308,7 @@ Reference < XNameContainer > if( m_xCellStyles.is() ) xStyles.set(m_xCellStyles); else - sName = - OUString( OUString( "CellStyles" )); + sName = "CellStyles"; } break; case XML_STYLE_FAMILY_TABLE_COLUMN: @@ -318,8 +316,7 @@ Reference < XNameContainer > if( m_xColumnStyles.is() ) xStyles.set(m_xColumnStyles); else - sName = - OUString( OUString( "ColumnStyles" )); + sName = "ColumnStyles"; } break; case XML_STYLE_FAMILY_TABLE_ROW: @@ -327,8 +324,7 @@ Reference < XNameContainer > if( m_xRowStyles.is() ) xStyles.set(m_xRowStyles); else - sName = - OUString( OUString( "RowStyles" )); + sName = "RowStyles"; } break; case XML_STYLE_FAMILY_SD_GRAPHICS_ID: |