summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-13 08:44:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-15 21:15:49 +0200
commitb4844c310bd9897fef59e8a4da0513100ea86096 (patch)
tree379a43d012894ff06d29d79c7d4d8009b7853501 /xmloff
parent8797ba5e5d63151837ba443e1aea9d0997b6b7ab (diff)
Repurpose loplugin:stringstatic for O[U]String vars that can be constexpr
...now that warning about O[U]String vars that could be O[U]StringLiteral is no longer useful Change-Id: I389e72038171f28482049b41f6224257dd11f452 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157992 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/layerexport.cxx2
-rw-r--r--xmloff/source/text/XMLRedlineExport.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx
index d1e92bca920d..800a88960143 100644
--- a/xmloff/source/forms/layerexport.cxx
+++ b/xmloff/source/forms/layerexport.cxx
@@ -65,7 +65,7 @@ namespace xmloff
//= OFormLayerXMLExport_Impl
const OUString& OFormLayerXMLExport_Impl::getControlNumberStyleNamePrefix()
{
- static const OUString s_sControlNumberStyleNamePrefix("C");
+ static constexpr OUString s_sControlNumberStyleNamePrefix(u"C"_ustr);
return s_sControlNumberStyleNamePrefix;
}
diff --git a/xmloff/source/text/XMLRedlineExport.cxx b/xmloff/source/text/XMLRedlineExport.cxx
index aa9b364fedb4..b779d059306e 100644
--- a/xmloff/source/text/XMLRedlineExport.cxx
+++ b/xmloff/source/text/XMLRedlineExport.cxx
@@ -414,7 +414,7 @@ OUString const & XMLRedlineExport::ConvertTypeName(
else
{
OSL_FAIL("unknown redline type");
- static const OUString sUnknownChange("UnknownChange");
+ static constexpr OUString sUnknownChange(u"UnknownChange"_ustr);
return sUnknownChange;
}
}