summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg
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/ui/namedlg
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/ui/namedlg')
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx4
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx2
-rw-r--r--sc/source/ui/namedlg/namemgrtable.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx
index 40936e378d30..764e6fa2e6bc 100644
--- a/sc/source/ui/namedlg/namedefdlg.cxx
+++ b/sc/source/ui/namedlg/namedefdlg.cxx
@@ -125,7 +125,7 @@ bool ScNameDefDlg::IsNameValid()
ScRangeName* pRangeName = nullptr;
if(aScope == maGlobalNameStr)
{
- pRangeName = maRangeMap.find(OUString(STR_GLOBAL_RANGE_NAME))->second;
+ pRangeName = maRangeMap.find(STR_GLOBAL_RANGE_NAME)->second;
}
else
{
@@ -186,7 +186,7 @@ void ScNameDefDlg::AddPushed()
ScRangeName* pRangeName = nullptr;
if(aScope == maGlobalNameStr)
{
- pRangeName = maRangeMap.find(OUString(STR_GLOBAL_RANGE_NAME))->second;
+ pRangeName = maRangeMap.find(STR_GLOBAL_RANGE_NAME)->second;
}
else
{
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index 21753cefb638..3d7077699e49 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -280,7 +280,7 @@ bool ScNameDlg::IsFormulaValid()
ScRangeName* ScNameDlg::GetRangeName(const OUString& rScope)
{
if (rScope == maGlobalNameStr)
- return &m_RangeMap.find(OUString(STR_GLOBAL_RANGE_NAME))->second;
+ return &m_RangeMap.find(STR_GLOBAL_RANGE_NAME)->second;
else
return &m_RangeMap.find(rScope)->second;
}
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index c2dbc19e721c..fa4b3ff4ef47 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -83,7 +83,7 @@ const ScRangeData* ScRangeManagerTable::findRangeData(const ScRangeNameLine& rLi
{
const ScRangeName* pRangeName;
if (rLine.aScope == maGlobalString)
- pRangeName = &m_RangeMap.find(OUString(STR_GLOBAL_RANGE_NAME))->second;
+ pRangeName = &m_RangeMap.find(STR_GLOBAL_RANGE_NAME)->second;
else
pRangeName = &m_RangeMap.find(rLine.aScope)->second;