summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-02 18:59:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-03 17:11:14 +0100
commitab285c743afa1c8769581871d7b56374fd8c49f1 (patch)
treed5628df49fb4db29d474e5e7b7cef4072c33153a /chart2/source
parentf4544f3903fed3a656e3cd57e1bd83582e024b96 (diff)
loplugin:stringadd
tweak the plugin to be more permissive, then validate by hand afterwards Change-Id: I40c5c911fe6ff7e45baaca372abf7dac211d9654 Reviewed-on: https://gerrit.libreoffice.org/81942 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 0de22676121a..83411df39171 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1681,11 +1681,11 @@ uno::Any SAL_CALL ChartController::getSelection()
sal_Int32 nPos = aCID.lastIndexOf('/');
OUString sFirst = aCID.copy(0, nPos);
OUString sSecond = aCID.copy(nPos);
- aCID = sFirst;
- aCID += "/Draggable=" + OUString::number(static_cast<int>(isSelectedObjectDraggable()));
- aCID += ":Resizable=" + OUString::number(static_cast<int>(isSelectedObjectResizable()));
- aCID += ":Rotatable=" + OUString::number(static_cast<int>(isSelectedObjectRotatable()));
- aCID += sSecond;
+ aCID = sFirst +
+ "/Draggable=" + OUString::number(static_cast<int>(isSelectedObjectDraggable())) +
+ ":Resizable=" + OUString::number(static_cast<int>(isSelectedObjectResizable())) +
+ ":Rotatable=" + OUString::number(static_cast<int>(isSelectedObjectRotatable())) +
+ sSecond;
}
aReturn <<= aCID;
}