summaryrefslogtreecommitdiff
path: root/extensions/source/dbpilots
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:13 +0200
commit97d5293ccaf12ceae0c6d7e79b73cd783038c95c (patch)
treea22441bc147d6b212442bd5b04f5983256f58754 /extensions/source/dbpilots
parentca149259eb8bba5c306fd4b174a7eeeb84a3bef7 (diff)
loplugin:stringcopy: extensions
Change-Id: I6abf8ec16f39db9226efa7e2c7f82644da100c81
Diffstat (limited to 'extensions/source/dbpilots')
-rw-r--r--extensions/source/dbpilots/listcombowizard.cxx6
-rw-r--r--extensions/source/dbpilots/optiongrouplayouter.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx
index b3bb2e6ffbad..3b8e09a9b9ab 100644
--- a/extensions/source/dbpilots/listcombowizard.cxx
+++ b/extensions/source/dbpilots/listcombowizard.cxx
@@ -181,8 +181,8 @@ namespace dbp
// build the statement to set as list source
OUString sStatement = "SELECT " +
- OUString( getSettings().sListContentField ) + ", " + OUString( getSettings().sLinkedListField ) +
- " FROM " + OUString( getSettings().sListContentTable );
+ getSettings().sListContentField + ", " + getSettings().sLinkedListField +
+ " FROM " + getSettings().sListContentTable;
Sequence< OUString > aListSource { sStatement };
getContext().xObjectModel->setPropertyValue("ListSource", makeAny(aListSource));
}
@@ -196,7 +196,7 @@ namespace dbp
}
// the bound field
- getContext().xObjectModel->setPropertyValue("DataField", makeAny(OUString(getSettings().sLinkedFormField)));
+ getContext().xObjectModel->setPropertyValue("DataField", makeAny(getSettings().sLinkedFormField));
}
catch(const Exception&)
{
diff --git a/extensions/source/dbpilots/optiongrouplayouter.cxx b/extensions/source/dbpilots/optiongrouplayouter.cxx
index 266edb89e721..b8c90319b4c9 100644
--- a/extensions/source/dbpilots/optiongrouplayouter.cxx
+++ b/extensions/source/dbpilots/optiongrouplayouter.cxx
@@ -119,9 +119,9 @@ namespace dbp
UNO_QUERY);
// the label
- xRadioModel->setPropertyValue("Label", makeAny(OUString(*aLabelIter)));
+ xRadioModel->setPropertyValue("Label", makeAny(*aLabelIter));
// the value
- xRadioModel->setPropertyValue("RefValue", makeAny(OUString(*aValueIter)));
+ xRadioModel->setPropertyValue("RefValue", makeAny(*aValueIter));
// default selection
if (_rSettings.sDefaultField == *aLabelIter)
@@ -129,7 +129,7 @@ namespace dbp
// the connection to the database field
if (!_rSettings.sDBField.isEmpty())
- xRadioModel->setPropertyValue("DataField", makeAny(OUString(_rSettings.sDBField)));
+ xRadioModel->setPropertyValue("DataField", makeAny(_rSettings.sDBField));
// the name for the model
xRadioModel->setPropertyValue("Name", makeAny(sElementsName));