summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 18:22:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-02 08:01:19 +0200
commitfe3d9961e32fd7230e21716793adaddffdf2463e (patch)
tree05511ede00f3b15842b4f1c0f3d9e90efc79ff92 /svtools/source/dialogs
parent5da08d7b14b03459070228bad1b42dc5d1746b9f (diff)
loplugin:stringadd in svtools
Change-Id: Ic085990173051f421d1ffc7914574cb63a7ae21d Reviewed-on: https://gerrit.libreoffice.org/79982 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/dialogs')
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index b2c730ff47f0..ef6401ba6ebf 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -297,9 +297,7 @@ void AssignmentPersistentData::ImplCommit()
OUString sAssignment;
if (hasFieldAssignment(_rLogicalName))
{
- OUString sFieldPath("Fields/");
- sFieldPath += _rLogicalName;
- sFieldPath += "/AssignedFieldName";
+ OUString sFieldPath = "Fields/" + _rLogicalName + "/AssignedFieldName";
sAssignment = getStringProperty(sFieldPath);
}
return sAssignment;
@@ -356,9 +354,7 @@ void AssignmentPersistentData::ImplCommit()
OUString sDescriptionNodePath("Fields");
// Fields/<field>
- OUString sFieldElementNodePath(sDescriptionNodePath);
- sFieldElementNodePath += "/";
- sFieldElementNodePath += _rLogicalName;
+ OUString sFieldElementNodePath = sDescriptionNodePath + "/" + _rLogicalName;
Sequence< PropertyValue > aNewFieldDescription(2);
// Fields/<field>/ProgrammaticFieldName