diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-03 12:12:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-03 17:58:24 +0100 |
commit | 9b0202bf43133fd440fae62ccb4727dafb2da211 (patch) | |
tree | a0829601a140e382c649f73bdbdc5646777557e5 /reportdesign/source | |
parent | 30f41d99af6cf84b5993d5c5c24fc49ef39bd756 (diff) |
loplugin:stringliteraldefine in xmloff
Change-Id: I9216c18d3ba4a4a528a49198fdfe547a66c06b6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126284
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/filter/xml/xmlStyleImport.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx index e6b103abc586..221645ac097d 100644 --- a/reportdesign/source/filter/xml/xmlStyleImport.cxx +++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx @@ -143,11 +143,6 @@ void OControlStyleContext::SetAttribute( sal_Int32 nElement, } -constexpr OUStringLiteral g_sTableStyleFamilyName( u"" XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME ); -constexpr OUStringLiteral g_sColumnStyleFamilyName( u"" XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME ); -constexpr OUStringLiteral g_sRowStyleFamilyName( u"" XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME ); -constexpr OUStringLiteral g_sCellStyleFamilyName( u"" XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME ); - OReportStylesContext::OReportStylesContext( ORptFilter& rImport, const bool bTempAutoStyles ) : SvXMLStylesContext( rImport ), @@ -360,16 +355,16 @@ OUString OReportStylesContext::GetServiceName( XmlStyleFamily nFamily ) const switch( nFamily ) { case XmlStyleFamily::TABLE_TABLE: - sServiceName = g_sTableStyleFamilyName; + sServiceName = XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME; break; case XmlStyleFamily::TABLE_COLUMN: - sServiceName = g_sColumnStyleFamilyName; + sServiceName = XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME; break; case XmlStyleFamily::TABLE_ROW: - sServiceName = g_sRowStyleFamilyName; + sServiceName = XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME; break; case XmlStyleFamily::TABLE_CELL: - sServiceName = g_sCellStyleFamilyName; + sServiceName = XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME; break; default: break; |