summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:58:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit2eb5a59a220d4cd2167fb59349ab13ca7663b78d (patch)
treef99f978a80138722e971b6966dc5882f45294c4c
parent646aabc06c4bd10b2dbf9ac83ccb5c7ea1cc7283 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: If18f0a749c1e474c302fd797c2a2abc2b33a0730
-rw-r--r--include/sax/fshelper.hxx4
-rw-r--r--sax/source/expatwrap/saxwriter.cxx2
-rw-r--r--sax/source/fastparser/legacyfastparser.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx
index 4c79a367eb80..badbc2928a89 100644
--- a/include/sax/fshelper.hxx
+++ b/include/sax/fshelper.hxx
@@ -115,11 +115,11 @@ public:
{ endElement( FSNS( namespaceTokenId, elementTokenId ) ); }
void singleElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList);
- inline void singleElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
+ inline void singleElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef const & xAttrList)
{ singleElement(FSNS( namespaceTokenId, elementTokenId), xAttrList); }
void startElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList);
- inline void startElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
+ inline void startElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef const & xAttrList)
{ startElement( FSNS( namespaceTokenId, elementTokenId ), xAttrList ); }
FastSerializerHelper* write(const char* value);
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index b055ae49bfce..3679a396a168 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -107,7 +107,7 @@ private:
sal_uInt32& rPos) throw( SAXException );
inline void FinishStartElement() throw( SAXException );
public:
- explicit SaxWriterHelper(Reference< XOutputStream > m_TempOut)
+ explicit SaxWriterHelper(Reference< XOutputStream > const & m_TempOut)
: m_out(m_TempOut)
, m_Sequence(SEQUENCESIZE)
, mp_Sequence(nullptr)
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index 8210ab0c8be6..94929a67d344 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -87,7 +87,7 @@ class CallbackDocumentHandler : public WeakImplHelper< XFastDocumentHandler >
private:
Reference< XDocumentHandler > m_xDocumentHandler;
public:
- CallbackDocumentHandler( Reference< XDocumentHandler > xDocumentHandler )
+ CallbackDocumentHandler( Reference< XDocumentHandler > const & xDocumentHandler )
{ m_xDocumentHandler.set( xDocumentHandler ); }
// XFastDocumentHandler