diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:58:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 3ada0545adc7533c02b37cb55f0cab09dcdac96b (patch) | |
tree | 254cc902a932a9f59510f3096dffa32634b95dca /sfx2 | |
parent | 768a6fc9c0ce926fc026eb0c93001b3058798917 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: Idb9dba0a96236b7b4240a1e94693d16e77484a29
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/helpinterceptor.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/helpinterceptor.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/imestatuswindow.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/eventsupplier.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/fltoptint.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/notify/eventsupplier.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index ea74addbe48c..4b184618c87d 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 786f1c7ca269..c4d4c1a5bff4 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 66a38edbeb70..77285b34ea7b 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 cc9d4a647c45..242313389c18 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 2d3462ec96e6..c5bb5db6dcda 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 6762f35cba3f..8d296a0c4cc4 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 c68b486d3ff1..2ae984d2fb5e 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 80b11199bd99..0e8d2c42c42e 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 6ee1942dc4f8..d003d8842cc8 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; |