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;
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)
{
}

View File

@ -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

View File

@ -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)
{

View File

@ -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 )
{