summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 15:28:25 +0200
commita841ac096f2794405408ef64189de2c77971c3e6 (patch)
tree020598516b2e6ba68411b0f6ac958b22160badd0 /sw/source/filter/xml/xmlimp.cxx
parenta98000c028a3c68329fdb2047f51f8d271b2290c (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: sw
Change-Id: I85fff7ed6932c5fc196e18f24fa01074ba4837e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158241 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 3b37d1cf76a0..c84a3a3a3392 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -417,7 +417,7 @@ void SwXMLImport::startDocument()
}
bool bOverwrite = false;
- static constexpr OUStringLiteral sStyleInsertModeOverwrite(u"StyleInsertModeOverwrite");
+ static constexpr OUString sStyleInsertModeOverwrite(u"StyleInsertModeOverwrite"_ustr);
if( xPropertySetInfo->hasPropertyByName(sStyleInsertModeOverwrite) )
{
aAny = xImportInfo->getPropertyValue(sStyleInsertModeOverwrite);
@@ -433,7 +433,7 @@ void SwXMLImport::startDocument()
}
// text insert mode?
- static constexpr OUStringLiteral sTextInsertModeRange(u"TextInsertModeRange");
+ static constexpr OUString sTextInsertModeRange(u"TextInsertModeRange"_ustr);
if( xPropertySetInfo->hasPropertyByName(sTextInsertModeRange) )
{
aAny = xImportInfo->getPropertyValue(sTextInsertModeRange);
@@ -443,7 +443,7 @@ void SwXMLImport::startDocument()
}
// auto text mode
- static constexpr OUStringLiteral sAutoTextMode(u"AutoTextMode");
+ static constexpr OUString sAutoTextMode(u"AutoTextMode"_ustr);
if( xPropertySetInfo->hasPropertyByName(sAutoTextMode) )
{
aAny = xImportInfo->getPropertyValue(sAutoTextMode);
@@ -455,7 +455,7 @@ void SwXMLImport::startDocument()
}
// organizer mode
- static constexpr OUStringLiteral sOrganizerMode(u"OrganizerMode");
+ static constexpr OUString sOrganizerMode(u"OrganizerMode"_ustr);
if( xPropertySetInfo->hasPropertyByName(sOrganizerMode) )
{
aAny = xImportInfo->getPropertyValue(sOrganizerMode);
@@ -467,7 +467,7 @@ void SwXMLImport::startDocument()
}
// default document properties
- static constexpr OUStringLiteral sDefSettings(u"DefaultDocumentSettings");
+ static constexpr OUString sDefSettings(u"DefaultDocumentSettings"_ustr);
if (xPropertySetInfo->hasPropertyByName(sDefSettings))
{
aAny = xImportInfo->getPropertyValue(sDefSettings);