summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 09:29:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 09:50:49 +0000
commitc76fb95d45f0240ee00f831a88e8a52bf3faacbc (patch)
tree482c9442f5f5b1576626e6eb76ff42ae59350816 /basctl
parent3c3a47e911a7ee4d199fe96bd3003c7d9afa9deb (diff)
loplugin:stringadd in b*
after my patch to merge the bufferadd loplugin into stringadd Change-Id: Ieb9b4f5154173738e26b429b55c7a3ea38733553 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149478 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/uiobject.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/uiobject.cxx b/basctl/source/basicide/uiobject.cxx
index 80807d3a40a6..b875b1eceda7 100644
--- a/basctl/source/basicide/uiobject.cxx
+++ b/basctl/source/basicide/uiobject.cxx
@@ -28,8 +28,7 @@ StringMap EditorWindowUIObject::get_state()
OUStringBuffer aRes;
for (i = 0, nParas = pEditEngine->GetParagraphCount(); i < nParas; ++i)
{
- aRes.append(pEditEngine->GetText(i));
- aRes.append("\n");
+ aRes.append(pEditEngine->GetText(i) + "\n");
}
aMap["Text"] = aRes.makeStringAndClear();