loplugin:passstuffbyref also for {css::uno,rtl}::Reference

Change-Id: I22e493f08f11b10d709dd8b4a223a75d52bb5899
This commit is contained in:
Stephan Bergmann
2016-07-07 15:57:30 +02:00
parent d4c576fb72
commit 91c64aa718
4 changed files with 7 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ class WeakContainerListener : public ::cppu::WeakImplHelper<css::container::XCon
css::uno::WeakReference<css::container::XContainerListener> mxOwner; css::uno::WeakReference<css::container::XContainerListener> mxOwner;
public: public:
WeakContainerListener(css::uno::Reference<css::container::XContainerListener> xOwner) WeakContainerListener(css::uno::Reference<css::container::XContainerListener> const & xOwner)
: mxOwner(xOwner) : mxOwner(xOwner)
{ {
} }
@@ -203,7 +203,7 @@ class WeakChangesListener : public ::cppu::WeakImplHelper<css::util::XChangesLis
css::uno::WeakReference<css::util::XChangesListener> mxOwner; css::uno::WeakReference<css::util::XChangesListener> mxOwner;
public: public:
WeakChangesListener(css::uno::Reference<css::util::XChangesListener> xOwner) WeakChangesListener(css::uno::Reference<css::util::XChangesListener> const & xOwner)
: mxOwner(xOwner) : mxOwner(xOwner)
{ {
} }
@@ -240,7 +240,7 @@ class WeakDocumentEventListener : public ::cppu::WeakImplHelper<css::document::X
css::uno::WeakReference<css::document::XDocumentEventListener> mxOwner; css::uno::WeakReference<css::document::XDocumentEventListener> mxOwner;
public: public:
WeakDocumentEventListener(css::uno::Reference<css::document::XDocumentEventListener> xOwner) WeakDocumentEventListener(css::uno::Reference<css::document::XDocumentEventListener> const & xOwner)
: mxOwner(xOwner) : mxOwner(xOwner)
{ {
} }

View File

@@ -135,7 +135,8 @@ class OWriteImagesDocumentHandler
public: public:
OWriteImagesDocumentHandler( OWriteImagesDocumentHandler(
const ImageListsDescriptor& aItems, const ImageListsDescriptor& aItems,
css::uno::Reference< css::xml::sax::XDocumentHandler > ); css::uno::Reference< css::xml::sax::XDocumentHandler > const &
rWriteDocumentHandler);
virtual ~OWriteImagesDocumentHandler(); virtual ~OWriteImagesDocumentHandler();
void WriteImagesDocument() throw void WriteImagesDocument() throw

View File

@@ -355,7 +355,7 @@ namespace
Desktop* const m_pDesktop; Desktop* const m_pDesktop;
css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher; css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher;
public: 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_pDesktop(pDesktop)
, m_xQuickLauncher(xQuickLauncher) , m_xQuickLauncher(xQuickLauncher)
{ {

View File

@@ -588,7 +588,7 @@ OUString OReadImagesDocumentHandler::getErrorLineString()
OWriteImagesDocumentHandler::OWriteImagesDocumentHandler( OWriteImagesDocumentHandler::OWriteImagesDocumentHandler(
const ImageListsDescriptor& aItems, const ImageListsDescriptor& aItems,
Reference< XDocumentHandler > rWriteDocumentHandler ) : Reference< XDocumentHandler > const & rWriteDocumentHandler ) :
m_aImageListsItems( aItems ), m_aImageListsItems( aItems ),
m_xWriteDocumentHandler( rWriteDocumentHandler ) m_xWriteDocumentHandler( rWriteDocumentHandler )
{ {