diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:57:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 91c64aa718cfa14f9e568ec7d0dc967c28d24cfd (patch) | |
tree | 3e9cf181cbb937adeec36f1814b79e82329fadb4 /framework/inc | |
parent | d4c576fb7207ee6f2ee4899fa4ee903c306595d4 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I22e493f08f11b10d709dd8b4a223a75d52bb5899
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/helper/mischelper.hxx | 6 | ||||
-rw-r--r-- | framework/inc/xml/imagesdocumenthandler.hxx | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx index 39cae9c6a484..84d3dc599795 100644 --- a/framework/inc/helper/mischelper.hxx +++ b/framework/inc/helper/mischelper.hxx @@ -148,7 +148,7 @@ class WeakContainerListener : public ::cppu::WeakImplHelper<css::container::XCon css::uno::WeakReference<css::container::XContainerListener> mxOwner; public: - WeakContainerListener(css::uno::Reference<css::container::XContainerListener> xOwner) + WeakContainerListener(css::uno::Reference<css::container::XContainerListener> const & xOwner) : mxOwner(xOwner) { } @@ -203,7 +203,7 @@ class WeakChangesListener : public ::cppu::WeakImplHelper<css::util::XChangesLis css::uno::WeakReference<css::util::XChangesListener> mxOwner; public: - WeakChangesListener(css::uno::Reference<css::util::XChangesListener> xOwner) + WeakChangesListener(css::uno::Reference<css::util::XChangesListener> const & xOwner) : mxOwner(xOwner) { } @@ -240,7 +240,7 @@ class WeakDocumentEventListener : public ::cppu::WeakImplHelper<css::document::X css::uno::WeakReference<css::document::XDocumentEventListener> mxOwner; public: - WeakDocumentEventListener(css::uno::Reference<css::document::XDocumentEventListener> xOwner) + WeakDocumentEventListener(css::uno::Reference<css::document::XDocumentEventListener> const & xOwner) : mxOwner(xOwner) { } diff --git a/framework/inc/xml/imagesdocumenthandler.hxx b/framework/inc/xml/imagesdocumenthandler.hxx index c46edece15ac..16ffcbea0d65 100644 --- a/framework/inc/xml/imagesdocumenthandler.hxx +++ b/framework/inc/xml/imagesdocumenthandler.hxx @@ -135,7 +135,8 @@ class OWriteImagesDocumentHandler public: OWriteImagesDocumentHandler( const ImageListsDescriptor& aItems, - css::uno::Reference< css::xml::sax::XDocumentHandler > ); + css::uno::Reference< css::xml::sax::XDocumentHandler > const & + rWriteDocumentHandler); virtual ~OWriteImagesDocumentHandler(); void WriteImagesDocument() throw |