summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 16:39:09 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-23 11:04:42 +0200
commitbd6fb0cd3eee3c7d414e55a7678c0097aadc7646 (patch)
tree5f754d7e485ab31dd4e04782b8eccd50d854d91e /sc/source/core
parent3501c52176d1122d9de08462435f633cd21de370 (diff)
Extended loplugin:ostr: Rewrite some O[U]StringLiteral -> O[U]String
...in include files. This is a mix of automatic rewriting in include files and manual fixups (mostly addressing loplugin:redundantfcast) in source files that include those. Change-Id: I1f3cc1e67b9cabd2e9d61a4d9e9a01e587ea35cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158337 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/stylehelper.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/sc/source/core/tool/stylehelper.cxx b/sc/source/core/tool/stylehelper.cxx
index c9cf69646571..bdd580ee326c 100644
--- a/sc/source/core/tool/stylehelper.cxx
+++ b/sc/source/core/tool/stylehelper.cxx
@@ -69,18 +69,18 @@ static const ScDisplayNameMap* lcl_GetStyleNameMap( SfxStyleFamily nType )
{ ScResId( STR_STYLENAME_ACCENT_3 ), "Accent 3" },
{ ScResId( STR_STYLENAME_RESULT ), "Result" },
// API compatibility programmatic names after.
- { ScResId( STR_STYLENAME_STANDARD ), OUString(SC_STYLE_PROG_STANDARD) },
- { ScResId( STR_STYLENAME_RESULT ), OUString(SC_STYLE_PROG_RESULT) },
- { ScResId( STR_STYLENAME_RESULT1 ), OUString(SC_STYLE_PROG_RESULT1) },
- { ScResId( STR_STYLENAME_HEADING ), OUString(SC_STYLE_PROG_HEADING) },
- { ScResId( STR_STYLENAME_HEADING_1 ), OUString(SC_STYLE_PROG_HEADING1) },
+ { ScResId( STR_STYLENAME_STANDARD ), SC_STYLE_PROG_STANDARD },
+ { ScResId( STR_STYLENAME_RESULT ), SC_STYLE_PROG_RESULT },
+ { ScResId( STR_STYLENAME_RESULT1 ), SC_STYLE_PROG_RESULT1 },
+ { ScResId( STR_STYLENAME_HEADING ), SC_STYLE_PROG_HEADING },
+ { ScResId( STR_STYLENAME_HEADING_1 ), SC_STYLE_PROG_HEADING1 },
// Pivot table styles.
- { ScResId( STR_PIVOT_STYLENAME_INNER ), OUString(SC_PIVOT_STYLE_PROG_INNER) },
- { ScResId( STR_PIVOT_STYLENAME_RESULT ), OUString(SC_PIVOT_STYLE_PROG_RESULT) },
- { ScResId( STR_PIVOT_STYLENAME_CATEGORY ), OUString(SC_PIVOT_STYLE_PROG_CATEGORY) },
- { ScResId( STR_PIVOT_STYLENAME_TITLE ), OUString(SC_PIVOT_STYLE_PROG_TITLE) },
- { ScResId( STR_PIVOT_STYLENAME_FIELDNAME ), OUString(SC_PIVOT_STYLE_PROG_FIELDNAME) },
- { ScResId( STR_PIVOT_STYLENAME_TOP ), OUString(SC_PIVOT_STYLE_PROG_TOP) },
+ { ScResId( STR_PIVOT_STYLENAME_INNER ), SC_PIVOT_STYLE_PROG_INNER },
+ { ScResId( STR_PIVOT_STYLENAME_RESULT ), SC_PIVOT_STYLE_PROG_RESULT },
+ { ScResId( STR_PIVOT_STYLENAME_CATEGORY ), SC_PIVOT_STYLE_PROG_CATEGORY },
+ { ScResId( STR_PIVOT_STYLENAME_TITLE ), SC_PIVOT_STYLE_PROG_TITLE },
+ { ScResId( STR_PIVOT_STYLENAME_FIELDNAME ), SC_PIVOT_STYLE_PROG_FIELDNAME },
+ { ScResId( STR_PIVOT_STYLENAME_TOP ), SC_PIVOT_STYLE_PROG_TOP },
// last entry remains empty
{ OUString(), OUString() },
};
@@ -90,8 +90,8 @@ static const ScDisplayNameMap* lcl_GetStyleNameMap( SfxStyleFamily nType )
{
static ScDisplayNameMap const aPageMap[]
{
- { ScResId( STR_STYLENAME_STANDARD ), OUString(SC_STYLE_PROG_STANDARD) },
- { ScResId( STR_STYLENAME_REPORT ), OUString(SC_STYLE_PROG_REPORT) },
+ { ScResId( STR_STYLENAME_STANDARD ), SC_STYLE_PROG_STANDARD },
+ { ScResId( STR_STYLENAME_REPORT ), SC_STYLE_PROG_REPORT },
// last entry remains empty
{ OUString(), OUString() },
};
@@ -101,7 +101,7 @@ static const ScDisplayNameMap* lcl_GetStyleNameMap( SfxStyleFamily nType )
{
static ScDisplayNameMap const aGraphicMap[]
{
- { ScResId( STR_STYLENAME_STANDARD ), OUString(SC_STYLE_PROG_STANDARD) },
+ { ScResId( STR_STYLENAME_STANDARD ), SC_STYLE_PROG_STANDARD },
{ ScResId( STR_STYLENAME_NOTE ), "Note" },
// last entry remains empty
{ OUString(), OUString() },