summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:57:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit91c64aa718cfa14f9e568ec7d0dc967c28d24cfd (patch)
tree3e9cf181cbb937adeec36f1814b79e82329fadb4
parentd4c576fb7207ee6f2ee4899fa4ee903c306595d4 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I22e493f08f11b10d709dd8b4a223a75d52bb5899
-rw-r--r--framework/inc/helper/mischelper.hxx6
-rw-r--r--framework/inc/xml/imagesdocumenthandler.hxx3
-rw-r--r--framework/source/services/desktop.cxx2
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx2
4 files changed, 7 insertions, 6 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
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 0ec0bce5bf94..d1f09fb66e8b 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -355,7 +355,7 @@ namespace
Desktop* const m_pDesktop;
css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher;
public:
- QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > xQuickLauncher)
+ QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > const & xQuickLauncher)
: m_pDesktop(pDesktop)
, m_xQuickLauncher(xQuickLauncher)
{
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index a04fe0165081..913324f8c7b1 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -588,7 +588,7 @@ OUString OReadImagesDocumentHandler::getErrorLineString()
OWriteImagesDocumentHandler::OWriteImagesDocumentHandler(
const ImageListsDescriptor& aItems,
- Reference< XDocumentHandler > rWriteDocumentHandler ) :
+ Reference< XDocumentHandler > const & rWriteDocumentHandler ) :
m_aImageListsItems( aItems ),
m_xWriteDocumentHandler( rWriteDocumentHandler )
{