diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 09:23:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 12:18:04 +0100 |
commit | 14b366e57a904c2c0d04804f15d8daf755f14541 (patch) | |
tree | 5997a5f1f60a5e0d418708948b408221ef50586c /dbaccess | |
parent | cabf739612a0e979ebcf76f40a24e66a354b10a5 (diff) |
loplugin:singlevalfields
Change-Id: I70dc861573fd1b3d799c88aa2a6d9a3eda0e2a43
Reviewed-on: https://gerrit.libreoffice.org/64327
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/filter/xml/xmlStyleImport.cxx | 9 | ||||
-rw-r--r-- | dbaccess/source/filter/xml/xmlStyleImport.hxx | 3 |
2 files changed, 3 insertions, 9 deletions
diff --git a/dbaccess/source/filter/xml/xmlStyleImport.cxx b/dbaccess/source/filter/xml/xmlStyleImport.cxx index 55878ad61c48..dd9da597c94a 100644 --- a/dbaccess/source/filter/xml/xmlStyleImport.cxx +++ b/dbaccess/source/filter/xml/xmlStyleImport.cxx @@ -139,9 +139,6 @@ OTableStylesContext::OTableStylesContext( SvXMLImport& rImport, const Reference< XAttributeList > & xAttrList, const bool bTempAutoStyles ) : SvXMLStylesContext( rImport, nPrfx, rLName, xAttrList ) - , sTableStyleServiceName( OUString( XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME )) - , sColumnStyleServiceName( OUString( XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME )) - , sCellStyleServiceName( OUString( XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME )) , m_nNumberFormatIndex(-1) , m_nMasterPageNameIndex(-1) , bAutoStyles(bTempAutoStyles) @@ -238,13 +235,13 @@ OUString OTableStylesContext::GetServiceName( sal_uInt16 nFamily ) const switch( nFamily ) { case XML_STYLE_FAMILY_TABLE_TABLE: - sServiceName = sTableStyleServiceName; + sServiceName = XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME; break; case XML_STYLE_FAMILY_TABLE_COLUMN: - sServiceName = sColumnStyleServiceName; + sServiceName = XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME; break; case XML_STYLE_FAMILY_TABLE_CELL: - sServiceName = sCellStyleServiceName; + sServiceName = XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME; break; } diff --git a/dbaccess/source/filter/xml/xmlStyleImport.hxx b/dbaccess/source/filter/xml/xmlStyleImport.hxx index 8a150a60b837..f8d0b4ea54dd 100644 --- a/dbaccess/source/filter/xml/xmlStyleImport.hxx +++ b/dbaccess/source/filter/xml/xmlStyleImport.hxx @@ -71,9 +71,6 @@ namespace dbaxml class OTableStylesContext : public SvXMLStylesContext { - const OUString sTableStyleServiceName; - const OUString sColumnStyleServiceName; - const OUString sCellStyleServiceName; sal_Int32 m_nNumberFormatIndex; sal_Int32 m_nMasterPageNameIndex; bool bAutoStyles : 1; |