summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 10:58:12 +0200
commit734db70ec85944aefb55a41b198fe1a60b91b2ea (patch)
tree82fe72e0a4013c3a5ccc946b1c2e437377c83726
parent6ece645435f823aae5d6532fd3e3d43eec46b5fe (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: starmath
Change-Id: I964db94e75e19cb507508b15755e3595247b5524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158221 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--starmath/source/cfgitem.cxx4
-rw-r--r--starmath/source/dialog.cxx2
-rw-r--r--starmath/source/mathml/mathmlexport.cxx8
-rw-r--r--starmath/source/unomodel.cxx4
4 files changed, 9 insertions, 9 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 5287b05e018d..8f698bb282ee 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -42,8 +42,8 @@
using namespace com::sun::star::uno;
using namespace com::sun::star::beans;
-constexpr OUStringLiteral SYMBOL_LIST = u"SymbolList";
-constexpr OUStringLiteral FONT_FORMAT_LIST = u"FontFormatList";
+constexpr OUString SYMBOL_LIST = u"SymbolList"_ustr;
+constexpr OUString FONT_FORMAT_LIST = u"FontFormatList"_ustr;
static Sequence< OUString > lcl_GetFontPropertyNames()
{
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index cea78036d59a..98f96eacb480 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -733,7 +733,7 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory)
// array to convert category- and metricfield-number in help ids.
// 0 is used in case of unused combinations.
assert(NOCATEGORIES == 10 && "Sm : array doesn't fit into the number of categories");
- static constexpr OUStringLiteral EMPTY(u"");
+ static constexpr OUString EMPTY(u""_ustr);
static constexpr OUString aCatMf2Hid[10][4] =
{
{ HID_SMA_DEFAULT_DIST, HID_SMA_LINE_DIST, HID_SMA_ROOT_DIST, EMPTY },
diff --git a/starmath/source/mathml/mathmlexport.cxx b/starmath/source/mathml/mathmlexport.cxx
index c498187222e9..3c308cd84bc6 100644
--- a/starmath/source/mathml/mathmlexport.cxx
+++ b/starmath/source/mathml/mathmlexport.cxx
@@ -124,10 +124,10 @@ bool SmXMLExportWrapper::Export(SfxMedium& rMedium)
}
}
- static constexpr OUStringLiteral sUsePrettyPrinting(u"UsePrettyPrinting");
- static constexpr OUStringLiteral sBaseURI(u"BaseURI");
- static constexpr OUStringLiteral sStreamRelPath(u"StreamRelPath");
- static constexpr OUStringLiteral sStreamName(u"StreamName");
+ static constexpr OUString sUsePrettyPrinting(u"UsePrettyPrinting"_ustr);
+ static constexpr OUString sBaseURI(u"BaseURI"_ustr);
+ static constexpr OUString sStreamRelPath(u"StreamRelPath"_ustr);
+ static constexpr OUString sStreamName(u"StreamName"_ustr);
// create XPropertySet with three properties for status indicator
static const comphelper::PropertyMapEntry aInfoMap[] = {
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 8348287f9350..96e41599ddad 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -393,8 +393,8 @@ sal_Bool SmModel::supportsService(const OUString& rServiceName)
uno::Sequence< OUString > SmModel::getSupportedServiceNames()
{
- static constexpr OUStringLiteral service1 = u"com.sun.star.document.OfficeDocument";
- static constexpr OUStringLiteral service2 = u"com.sun.star.formula.FormulaProperties";
+ static constexpr OUString service1 = u"com.sun.star.document.OfficeDocument"_ustr;
+ static constexpr OUString service2 = u"com.sun.star.formula.FormulaProperties"_ustr;
return uno::Sequence<OUString>{ service1, service2 };
}