diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-20 11:49:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-20 13:03:29 +0200 |
commit | 8bedbc3f567f3f6d567376ccf0830160df1d4bbb (patch) | |
tree | d3f4292a0529dbced8916abd3a6cef53ae6ad2b5 /xmloff/source/core | |
parent | f24b46c27243b88e4d367d7b105d1365e97dbd76 (diff) |
loplugin:constparams in xmloff
Change-Id: Iec9535b106c85e47ddb14eec4ef3db5b1c8d8fd7
Reviewed-on: https://gerrit.libreoffice.org/40219
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/DocumentSettingsContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/RDFaImportHelper.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/XMLEmbeddedObjectImportContext.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 2 |
6 files changed, 7 insertions, 8 deletions
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx index 6dfe2e723967..7f902830f5b9 100644 --- a/xmloff/source/core/DocumentSettingsContext.cxx +++ b/xmloff/source/core/DocumentSettingsContext.cxx @@ -59,7 +59,7 @@ class XMLMyList public: explicit XMLMyList(const uno::Reference<uno::XComponentContext>& rxContext); - void push_back(beans::PropertyValue& aProp) { aProps.push_back(aProp); nCount++; } + void push_back(beans::PropertyValue const & aProp) { aProps.push_back(aProp); nCount++; } uno::Sequence<beans::PropertyValue> GetSequence(); uno::Reference<container::XNameContainer> GetNameContainer(); uno::Reference<container::XIndexContainer> GetIndexContainer(); diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx index 1d8b440d3ea5..abfa5ed80ced 100644 --- a/xmloff/source/core/RDFaImportHelper.cxx +++ b/xmloff/source/core/RDFaImportHelper.cxx @@ -397,7 +397,7 @@ RDFaImportHelper::ParseRDFa( void RDFaImportHelper::AddRDFa( uno::Reference<rdf::XMetadatable> const & i_xObject, - std::shared_ptr<ParsedRDFaAttributes> & i_pRDFaAttributes) + std::shared_ptr<ParsedRDFaAttributes> const & i_pRDFaAttributes) { if (!i_xObject.is()) { diff --git a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx index 9c0699b80ca7..50401c3dc7ee 100644 --- a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx +++ b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx @@ -100,8 +100,7 @@ void XMLEmbeddedObjectImportContext_Impl::Characters( const OUString& rChars ) } -void XMLEmbeddedObjectImportContext::SetComponent( - Reference< XComponent >& rComp ) +void XMLEmbeddedObjectImportContext::SetComponent( Reference< XComponent > const & rComp ) { if( !rComp.is() || sFilterService.isEmpty() ) return; diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 89fe990f6d11..874a330882b3 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -1216,7 +1216,7 @@ void SvXMLExport::SetBodyAttributes() } static void -lcl_AddGrddl(SvXMLExport & rExport, const SvXMLExportFlags /*nExportMode*/) +lcl_AddGrddl(SvXMLExport const & rExport, const SvXMLExportFlags /*nExportMode*/) { // check version >= 1.2 switch (rExport.getDefaultVersion()) { @@ -2065,7 +2065,7 @@ sal_Int64 SAL_CALL SvXMLExport::getSomething( const uno::Sequence< sal_Int8 >& r return 0; } -void SvXMLExport::ExportEmbeddedOwnObject( Reference< XComponent >& rComp ) +void SvXMLExport::ExportEmbeddedOwnObject( Reference< XComponent > const & rComp ) { OUString sFilterService; diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 10f31883f236..464d397d29b6 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -2117,7 +2117,7 @@ SvXMLImportFastNamespaceHandler::SvXMLImportFastNamespaceHandler() { } -void SvXMLImportFastNamespaceHandler::addNSDeclAttributes( rtl::Reference < comphelper::AttributeList >& rAttrList ) +void SvXMLImportFastNamespaceHandler::addNSDeclAttributes( rtl::Reference < comphelper::AttributeList > const & rAttrList ) { for(const auto& aNamespaceDefine : m_aNamespaceDefines) { diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 7272ac0e6870..d65ad047c130 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -732,7 +732,7 @@ void SvXMLUnitConverter::convertPropertySet(uno::Sequence<beans::PropertyValue>& } } -void SvXMLUnitConverter::convertPropertySet(uno::Reference<beans::XPropertySet>& rProperties, +void SvXMLUnitConverter::convertPropertySet(uno::Reference<beans::XPropertySet> const & rProperties, const uno::Sequence<beans::PropertyValue>& aProps) { sal_Int32 nCount(aProps.getLength()); |