diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-25 19:30:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-26 11:24:13 +0000 |
commit | 86313f053315cd0ba896e494d7bac14d2279c9b4 (patch) | |
tree | cc76691f65cb5fa70e86d81293fcdbf0a74f0e76 /sc/source/ui/dbgui | |
parent | 4938bbcd64e95c9b494bcc32e8a5be3706f00cfa (diff) |
loplugin:stringadd in sc
after my patch to merge the bufferadd loplugin into stringadd
Change-Id: Ifa70db5be4719fe66d3043e5e49403246f6aa8bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149582
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/asciiopt.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/dbgui/csvruler.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 9 |
3 files changed, 5 insertions, 10 deletions
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index 4234794ea279..20d1844e08b3 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -218,8 +218,7 @@ OUString ScAsciiOptions::WriteToString() const } if ( bMergeFieldSeps ) { - aOutStr.append("/"); - aOutStr.append(pStrMrg); + aOutStr.append(OUString::Concat("/") + pStrMrg); } } diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx index 3af7645e2431..5f9f8354bbfe 100644 --- a/sc/source/ui/dbgui/csvruler.cxx +++ b/sc/source/ui/dbgui/csvruler.cxx @@ -74,8 +74,7 @@ static void save_FixedWidthList(const ScCsvSplits& rSplits) sal_uInt32 n = rSplits.Count(); for (sal_uInt32 i = 0; i < n; ++i) { - sSplits.append(rSplits[i]); - sSplits.append(";"); + sSplits.append(OUString::number(rSplits[i]) + ";"); } OUString sFixedWidthLists = sSplits.makeStringAndClear(); diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index 29f019b7e5db..68543eb6ce44 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -247,20 +247,17 @@ void ScDbNameDlg::Init() void ScDbNameDlg::SetInfoStrings( const ScDBData* pDBData ) { - OUStringBuffer aBuf; - aBuf.append(aStrSource); + OUStringBuffer aBuf(aStrSource); if (pDBData) { - aBuf.append(' '); - aBuf.append(pDBData->GetSourceString()); + aBuf.append(" " + pDBData->GetSourceString()); } m_xFTSource->set_label(aBuf.makeStringAndClear()); aBuf.append(aStrOperations); if (pDBData) { - aBuf.append(' '); - aBuf.append(pDBData->GetOperations()); + aBuf.append(" " + pDBData->GetOperations()); } m_xFTOperations->set_label(aBuf.makeStringAndClear()); } |