summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:44 +0200
commitdd44fd294cfb5eabe4c8382acdd82d323d8e8dd1 (patch)
tree75d30fe7481d8f23e19e922746e25d695ae5ea3c /svx/source/form
parent713843bebb27f09b5af9190cf84c57f6076e54aa (diff)
loplugin:stringcopy: svx
Change-Id: Ic1874b2bfe28149deab3e6903ef7d7dac77cfc4b
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/fmvwimp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 4ce10fd6f692..5403bcc1b6ec 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -1433,11 +1433,11 @@ SdrObject* FmXFormView::implCreateXFormsControl( const svx::OXFormsDescriptor &_
// The service name decides which control should be created
sal_uInt16 nOBJID = OBJ_FM_EDIT;
- if(OUString(_rDesc.szServiceName) == FM_SUN_COMPONENT_NUMERICFIELD)
+ if(_rDesc.szServiceName == FM_SUN_COMPONENT_NUMERICFIELD)
nOBJID = OBJ_FM_NUMERICFIELD;
- if(OUString(_rDesc.szServiceName) == FM_SUN_COMPONENT_CHECKBOX)
+ if(_rDesc.szServiceName == FM_SUN_COMPONENT_CHECKBOX)
nOBJID = OBJ_FM_CHECKBOX;
- if(OUString(_rDesc.szServiceName) == FM_COMPONENT_COMMANDBUTTON)
+ if(_rDesc.szServiceName == FM_COMPONENT_COMMANDBUTTON)
nOBJID = OBJ_FM_BUTTON;
Reference< css::form::submission::XSubmission > xSubmission(_rDesc.xPropSet, UNO_QUERY);
@@ -1493,7 +1493,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const svx::OXFormsDescriptor &_
// set the button label
Reference< XPropertySet > xControlSet(pControl->GetUnoControlModel(), UNO_QUERY);
- xControlSet->setPropertyValue(FM_PROP_LABEL, makeAny(OUString(_rDesc.szName)));
+ xControlSet->setPropertyValue(FM_PROP_LABEL, makeAny(_rDesc.szName));
// connect the submission with the submission supplier (aka the button)
xControlSet->setPropertyValue( FM_PROP_BUTTON_TYPE,