summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-14 16:53:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-15 07:02:36 +0100
commitaa58c380894dd384f6ce1efc62b3932136f2f477 (patch)
treeca6af6905afd398da0541c71733393540ab8be2e /sw/source/filter/xml/xmlimp.cxx
parent0cb4f304abf6f8dd6b40eb800788d2fe80581813 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx6
1 files changed, 3 insertions, 3 deletions
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);
}
}