diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:56:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | a291c8fbaa7734cc8002c907a36bd286eb4faa1a (patch) | |
tree | 19f0ed400e33b0ba2142de4b2812422f45e36947 /comphelper/source | |
parent | d956a5d29e68a9d89d31459bc891cfb260daa0c8 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I11d6467a35fb9e32cc0608549bd323b1f6683b9f
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/compare/AnyCompareFactory.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/container/container.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/misc/weakeventlistener.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/compare/AnyCompareFactory.cxx b/comphelper/source/compare/AnyCompareFactory.cxx index 9eacb4fac518..4a0bbc3eeb72 100644 --- a/comphelper/source/compare/AnyCompareFactory.cxx +++ b/comphelper/source/compare/AnyCompareFactory.cxx @@ -41,7 +41,7 @@ class AnyCompare : public ::cppu::WeakImplHelper< XAnyCompare > Reference< XCollator > m_xCollator; public: - AnyCompare( Reference< XComponentContext > xContext, const Locale& rLocale ) + AnyCompare( Reference< XComponentContext > const & xContext, const Locale& rLocale ) { m_xCollator = Collator::create( xContext ); m_xCollator->loadDefaultCollator( rLocale, @@ -58,7 +58,7 @@ class AnyCompareFactory : public cppu::WeakImplHelper< XAnyCompareFactory, XInit Locale m_Locale; public: - explicit AnyCompareFactory( Reference< XComponentContext > xContext ) : m_xContext( xContext ) + explicit AnyCompareFactory( Reference< XComponentContext > const & xContext ) : m_xContext( xContext ) {} // XAnyCompareFactory diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx index 00e3b77a40af..44f117b4562b 100644 --- a/comphelper/source/container/container.cxx +++ b/comphelper/source/container/container.cxx @@ -29,7 +29,7 @@ namespace comphelper { -IndexAccessIterator::IndexAccessIterator(css::uno::Reference< css::uno::XInterface> xStartingPoint) +IndexAccessIterator::IndexAccessIterator(css::uno::Reference< css::uno::XInterface> const & xStartingPoint) :m_xStartingPoint(xStartingPoint) ,m_xCurrentObject(nullptr) { diff --git a/comphelper/source/misc/weakeventlistener.cxx b/comphelper/source/misc/weakeventlistener.cxx index de786e5d19c7..e8ce46590559 100644 --- a/comphelper/source/misc/weakeventlistener.cxx +++ b/comphelper/source/misc/weakeventlistener.cxx @@ -32,7 +32,7 @@ namespace comphelper { } - OWeakEventListenerAdapter::OWeakEventListenerAdapter( Reference< XWeak > _rxListener, Reference< XComponent > _rxBroadcaster ) + OWeakEventListenerAdapter::OWeakEventListenerAdapter( Reference< XWeak > const & _rxListener, Reference< XComponent > const & _rxBroadcaster ) :OWeakEventListenerAdapter_Base( _rxListener, _rxBroadcaster ) { // add ourself as listener to the broadcaster |