From aa58c380894dd384f6ce1efc62b3932136f2f477 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Feb 2020 16:53:39 +0200 Subject: convert XML_STYLE_FAMILY to scoped enum Change-Id: I5335b0190a2f5a8111993c0c9c224c8a6a8f0cfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88723 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/xmlimp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/filter/xml/xmlimp.cxx') diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 3373607993c3..01b22fef1c3a 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -150,11 +150,11 @@ SwXMLBodyContext_Impl::SwXMLBodyContext_Impl( SwXMLImport& rImport ) : rImport.GetTextImport()->GetTextStyles()); if (!xStyles->hasByName("Default")) { // this old name was used before LO 4.0 - rImport.AddStyleDisplayName(XML_STYLE_FAMILY_TEXT_TEXT, "Default", sDefault); + rImport.AddStyleDisplayName(XmlStyleFamily::TEXT_TEXT, "Default", sDefault); } if (!xStyles->hasByName("Default_20_Style")) { // this new name contains a space which is converted to _20_ on export - rImport.AddStyleDisplayName(XML_STYLE_FAMILY_TEXT_TEXT, "Default_20_Style", sDefault); + rImport.AddStyleDisplayName(XmlStyleFamily::TEXT_TEXT, "Default_20_Style", sDefault); } bool isEncoded(false); OUString const defaultEncoded( @@ -162,7 +162,7 @@ SwXMLBodyContext_Impl::SwXMLBodyContext_Impl( SwXMLImport& rImport ) : if (isEncoded && defaultEncoded != "Default_20_Style" && !xStyles->hasByName(defaultEncoded)) { // new name may contain a space which is converted to _20_ on export - rImport.AddStyleDisplayName(XML_STYLE_FAMILY_TEXT_TEXT, defaultEncoded, sDefault); + rImport.AddStyleDisplayName(XmlStyleFamily::TEXT_TEXT, defaultEncoded, sDefault); } } -- cgit