summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-25 17:17:50 +0200
committerNoel Grandin <noel@peralex.com>2013-11-04 10:11:07 +0200
commitaeb41c9b9b7559c6d87bf92807acdc0df9e104cc (patch)
tree5a36bcd5af873c2b597fcda5fbd7e2f76f997669 /svtools/source/dialogs
parent57c2de08ddf14c0da80de06736d99382ad036539 (diff)
remove redundant calls to OUString constructor
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
Diffstat (limited to 'svtools/source/dialogs')
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index eb81fb6f7ea2..fc4a4810f463 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -348,7 +348,7 @@ void AssignmentPersistentData::Commit()
{
OUString sFieldPath("Fields/");
sFieldPath += _rLogicalName;
- sFieldPath += OUString("/AssignedFieldName");
+ sFieldPath += "/AssignedFieldName";
sAssignment = getStringProperty(sFieldPath);
}
return sAssignment;
@@ -421,17 +421,15 @@ void AssignmentPersistentData::Commit()
// Fields/<field>
OUString sFieldElementNodePath(sDescriptionNodePath);
- sFieldElementNodePath += OUString("/");
+ sFieldElementNodePath += "/";
sFieldElementNodePath += _rLogicalName;
Sequence< PropertyValue > aNewFieldDescription(2);
// Fields/<field>/ProgrammaticFieldName
- aNewFieldDescription[0].Name = sFieldElementNodePath;
- aNewFieldDescription[0].Name += OUString("/ProgrammaticFieldName");
+ aNewFieldDescription[0].Name = sFieldElementNodePath + "/ProgrammaticFieldName";
aNewFieldDescription[0].Value <<= _rLogicalName;
// Fields/<field>/AssignedFieldName
- aNewFieldDescription[1].Name = sFieldElementNodePath;
- aNewFieldDescription[1].Name += OUString("/AssignedFieldName");
+ aNewFieldDescription[1].Name = sFieldElementNodePath + "/AssignedFieldName";
aNewFieldDescription[1].Value <<= _rAssignment;
// just set the new value