summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 09:24:31 +0200
commit02411752218670d89726a06f746c2b622ed4efc6 (patch)
treec073b99ee6e043ed20c063194a18b84fe2f5e756 /scaddins
parentbc9fc85452a4da18df592be190347e9781dbba0a (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: scaddins
Change-Id: I964223021109dbafedc875ab5c016e0fdef411b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158217 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx6
-rw-r--r--scaddins/source/datefunc/datefunc.cxx4
-rw-r--r--scaddins/source/pricing/pricing.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 58f853fa1bae..525a17000456 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -32,8 +32,8 @@
#include <cmath>
#include <float.h>
-constexpr OUStringLiteral ADDIN_SERVICE = u"com.sun.star.sheet.AddIn";
-constexpr OUStringLiteral MY_SERVICE = u"com.sun.star.sheet.addin.Analysis";
+constexpr OUString ADDIN_SERVICE = u"com.sun.star.sheet.AddIn"_ustr;
+constexpr OUString MY_SERVICE = u"com.sun.star.sheet.addin.Analysis"_ustr;
constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.AnalysisImpl";
using namespace ::com::sun::star;
@@ -231,7 +231,7 @@ OUString SAL_CALL AnalysisAddIn::getArgumentDescription( const OUString& aName,
return aRet;
}
-constexpr OUStringLiteral pDefCatName = u"Add-In";
+constexpr OUString pDefCatName = u"Add-In"_ustr;
OUString SAL_CALL AnalysisAddIn::getProgrammaticCategoryName( const OUString& aName )
{
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 92492b29d150..9b59adcb5dde 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -33,8 +33,8 @@
using namespace ::com::sun::star;
-constexpr OUStringLiteral ADDIN_SERVICE = u"com.sun.star.sheet.AddIn";
-constexpr OUStringLiteral MY_SERVICE = u"com.sun.star.sheet.addin.DateFunctions";
+constexpr OUString ADDIN_SERVICE = u"com.sun.star.sheet.AddIn"_ustr;
+constexpr OUString MY_SERVICE = u"com.sun.star.sheet.addin.DateFunctions"_ustr;
constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.DateFunctionsImpl";
#define UNIQUE false // function name does not exist in Calc
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index 06917f71f44f..3182024abe35 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -41,8 +41,8 @@ using namespace ::com::sun::star;
using namespace sca::pricing;
-constexpr OUStringLiteral ADDIN_SERVICE = u"com.sun.star.sheet.AddIn";
-constexpr OUStringLiteral MY_SERVICE = u"com.sun.star.sheet.addin.PricingFunctions";
+constexpr OUString ADDIN_SERVICE = u"com.sun.star.sheet.AddIn"_ustr;
+constexpr OUString MY_SERVICE = u"com.sun.star.sheet.addin.PricingFunctions"_ustr;
constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.PricingFunctionsImpl";
const ScaFuncDataBase pFuncDataArr[] =