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

Change-Id: Idb9dba0a96236b7b4240a1e94693d16e77484a29
diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx
index e68d3f1..d76b35e 100644
--- a/include/sfx2/notebookbar/SfxNotebookBar.hxx
+++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx
@@ -29,7 +29,7 @@ public:
    /// Function to be called from the sdi's StateMethod.
    static void StateMethod(SfxBindings& rBindings, const OUString& rUIFile);
    static void StateMethod(SystemWindow* pSysWindow,
                            const css::uno::Reference<css::frame::XFrame> xFrame,
                            const css::uno::Reference<css::frame::XFrame> & xFrame,
                            const OUString& rUIFile);

    static void RemoveListeners(SystemWindow* pSysWindow);
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index ea74add..4b18461 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -1670,7 +1670,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL
}


RequestFilterOptions::RequestFilterOptions( uno::Reference< frame::XModel > rModel,
RequestFilterOptions::RequestFilterOptions( uno::Reference< frame::XModel > const & rModel,
                              const uno::Sequence< beans::PropertyValue >& rProperties )
{
    OUString temp;
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index 786f1c7..c4d4c1a 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -295,7 +295,7 @@ void SAL_CALL HelpListener_Impl::disposing( const css::lang::EventObject& )
}

HelpStatusListener_Impl::HelpStatusListener_Impl(
        Reference < XDispatch > aDispatch, URL& rURL)
        Reference < XDispatch > const & aDispatch, URL& rURL)
{
    aDispatch->addStatusListener(this, rURL);
}
diff --git a/sfx2/source/appl/helpinterceptor.hxx b/sfx2/source/appl/helpinterceptor.hxx
index 66a38ed..77285b34e 100644
--- a/sfx2/source/appl/helpinterceptor.hxx
+++ b/sfx2/source/appl/helpinterceptor.hxx
@@ -141,7 +141,7 @@ private:

public:
    HelpStatusListener_Impl(
        css::uno::Reference < css::frame::XDispatch > xDispatch,
        css::uno::Reference < css::frame::XDispatch > const & xDispatch,
        css::util::URL& rURL);
    virtual ~HelpStatusListener_Impl();

diff --git a/sfx2/source/appl/imestatuswindow.cxx b/sfx2/source/appl/imestatuswindow.cxx
index cc9d4a6..2423133 100644
--- a/sfx2/source/appl/imestatuswindow.cxx
+++ b/sfx2/source/appl/imestatuswindow.cxx
@@ -50,7 +50,7 @@ class WeakPropertyChangeListener : public ::cppu::WeakImplHelper<css::beans::XPr
        css::uno::WeakReference<css::beans::XPropertyChangeListener> mxOwner;

    public:
        explicit WeakPropertyChangeListener(css::uno::Reference<css::beans::XPropertyChangeListener> xOwner)
        explicit WeakPropertyChangeListener(css::uno::Reference<css::beans::XPropertyChangeListener> const & xOwner)
            : mxOwner(xOwner)
        {
        }
diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx
index 2d3462e..c5bb5db 100644
--- a/sfx2/source/inc/eventsupplier.hxx
+++ b/sfx2/source/inc/eventsupplier.hxx
@@ -59,7 +59,7 @@ class SfxEvents_Impl : public ::cppu::WeakImplHelper< css::container::XNameRepla

public:
                                SfxEvents_Impl( SfxObjectShell* pShell,
                                                css::uno::Reference< css::document::XEventBroadcaster > xBroadcaster );
                                                css::uno::Reference< css::document::XEventBroadcaster > const & xBroadcaster );
                               virtual ~SfxEvents_Impl();

    //  --- XNameReplace ---
diff --git a/sfx2/source/inc/fltoptint.hxx b/sfx2/source/inc/fltoptint.hxx
index 6762f35..8d296a0 100644
--- a/sfx2/source/inc/fltoptint.hxx
+++ b/sfx2/source/inc/fltoptint.hxx
@@ -45,7 +45,7 @@ class RequestFilterOptions : public ::cppu::WeakImplHelper< css::task::XInteract
    FilterOptionsContinuation*  m_pOptions;

public:
    RequestFilterOptions( css::uno::Reference< css::frame::XModel > rModel,
    RequestFilterOptions( css::uno::Reference< css::frame::XModel > const & rModel,
                              const css::uno::Sequence< css::beans::PropertyValue >& rProperties );

    bool    isAbort() { return m_pAbort->wasSelected(); }
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index c68b486..2ae984d 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -46,7 +46,7 @@ void SfxNotebookBar::StateMethod(SfxBindings& rBindings, const OUString& rUIFile
}

void SfxNotebookBar::StateMethod(SystemWindow* pSysWindow,
                                 const Reference<css::frame::XFrame> xFrame,
                                 const Reference<css::frame::XFrame> & xFrame,
                                 const OUString& rUIFile)
{
    assert(pSysWindow);
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 80b1119..0e8d2c4 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -311,7 +311,7 @@ void SAL_CALL SfxEvents_Impl::disposing( const lang::EventObject& /*Source*/ ) t


SfxEvents_Impl::SfxEvents_Impl( SfxObjectShell* pShell,
                                uno::Reference< document::XEventBroadcaster > xBroadcaster )
                                uno::Reference< document::XEventBroadcaster > const & xBroadcaster )
{
    // get the list of supported events and store it
    if ( pShell )
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 6ee1942..d003d88 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -123,7 +123,7 @@ public:

    struct AsyncExecuteInfo
    {
        AsyncExecuteInfo( AsyncExecuteCmd eCmd, uno::Reference< datatransfer::clipboard::XClipboardListener > xThis, SfxClipboardChangeListener* pListener ) :
        AsyncExecuteInfo( AsyncExecuteCmd eCmd, uno::Reference< datatransfer::clipboard::XClipboardListener > const & xThis, SfxClipboardChangeListener* pListener ) :
            m_eCmd( eCmd ), m_xThis( xThis ), m_pListener( pListener ) {}

        AsyncExecuteCmd m_eCmd;