summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-06 08:50:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-06 09:54:25 +0200
commit24eae7bd702f3f6dd790be7ac38ac16e9fe6a375 (patch)
tree56398264184709e84517c2e843aa3a0894cc1c51 /xmloff
parentfad919eb0d30b2303193e1c00ba765514957652c (diff)
clang-tidy performance-unnecessary-value-param
Change-Id: I69247498e13331f6ef84afeb242479f8fb1178a8 Reviewed-on: https://gerrit.libreoffice.org/60068 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/impastpl.cxx3
-rw-r--r--xmloff/source/xforms/xformsimport.cxx15
2 files changed, 7 insertions, 11 deletions
diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx
index 67965fac188e..6110ab1a9269 100644
--- a/xmloff/source/style/impastpl.cxx
+++ b/xmloff/source/style/impastpl.cxx
@@ -161,8 +161,7 @@ data2string(void *data,
return result.makeStringAndClear();
}
-static OUString
-any2string(uno::Any any)
+static OUString any2string(const uno::Any& any)
{
return data2string(const_cast<void*>(any.getValue()), any.pType);
}
diff --git a/xmloff/source/xforms/xformsimport.cxx b/xmloff/source/xforms/xformsimport.cxx
index 7b4db9784e44..03b1ca1d6043 100644
--- a/xmloff/source/xforms/xformsimport.cxx
+++ b/xmloff/source/xforms/xformsimport.cxx
@@ -63,9 +63,8 @@ SvXMLImportContext* createXFormsModelContext(
return new XFormsModelContext( rImport, nPrefix, rLocalName );
}
-void bindXFormsValueBinding(
- Reference<XModel> const & xModel,
- pair<Reference<XPropertySet>,OUString> aPair )
+void bindXFormsValueBinding(Reference<XModel> const& xModel,
+ const pair<Reference<XPropertySet>, OUString>& aPair)
{
Reference<XBindableValue> xBindable(
aPair.first,
@@ -88,9 +87,8 @@ void bindXFormsValueBinding(
}
}
-void bindXFormsListBinding(
- Reference<XModel> const & xModel,
- ::pair<Reference<XPropertySet>,OUString> aPair )
+void bindXFormsListBinding(Reference<XModel> const& xModel,
+ const ::pair<Reference<XPropertySet>, OUString>& aPair)
{
Reference<XListEntrySink> xListEntrySink(
aPair.first,
@@ -113,9 +111,8 @@ void bindXFormsListBinding(
}
}
-void bindXFormsSubmission(
- Reference<XModel> const & xModel,
- pair<Reference<XPropertySet>,OUString> aPair )
+void bindXFormsSubmission(Reference<XModel> const& xModel,
+ const pair<Reference<XPropertySet>, OUString>& aPair)
{
Reference<XSubmissionSupplier> xSubmissionSupp( aPair.first, UNO_QUERY );
Reference<XSubmission> xSubmission(