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/dbnamdlg.cxx | |
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/dbnamdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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()); } |