diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 11:47:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 14:51:56 +0200 |
commit | b09deb075319c1c19f91e3a6f64429b61682ebf8 (patch) | |
tree | 9e73d1e63092083a337a4ddf1dfe962b4f6ef4dc /sfx2/source/appl | |
parent | 587d6e13df7bb9c8f78ce605ebb8f8fd34b85a2c (diff) |
loplugin:constparams handle constructors
had to change the structure of the plugin considerably, was too messy to
structure it to do the calculations on a per-function basis
Change-Id: I4edee7735f726101105c607368124a08dba21086
Reviewed-on: https://gerrit.libreoffice.org/40516
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/appbas.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/impldde.cxx | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx index c9184bbb6fd3..99d9573c1dc2 100644 --- a/sfx2/source/appl/appbas.cxx +++ b/sfx2/source/appl/appbas.cxx @@ -140,7 +140,7 @@ StarBASIC* SfxApplication::GetBasic() #endif } -void SfxApplication::PropExec_Impl( SfxRequest &rReq ) +void SfxApplication::PropExec_Impl( SfxRequest const &rReq ) { sal_uInt16 nSID = rReq.GetSlot(); switch ( nSID ) diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx index 4e3db51d4125..03f81a25e358 100644 --- a/sfx2/source/appl/helpinterceptor.cxx +++ b/sfx2/source/appl/helpinterceptor.cxx @@ -278,7 +278,7 @@ void SAL_CALL HelpListener_Impl::disposing( const css::lang::EventObject& ) } HelpStatusListener_Impl::HelpStatusListener_Impl( - Reference < XDispatch > const & aDispatch, URL& rURL) + Reference < XDispatch > const & aDispatch, URL const & rURL) { aDispatch->addStatusListener(this, rURL); } diff --git a/sfx2/source/appl/helpinterceptor.hxx b/sfx2/source/appl/helpinterceptor.hxx index f557d35c82f7..6f3f4beadf35 100644 --- a/sfx2/source/appl/helpinterceptor.hxx +++ b/sfx2/source/appl/helpinterceptor.hxx @@ -140,7 +140,7 @@ private: public: HelpStatusListener_Impl( css::uno::Reference < css::frame::XDispatch > const & xDispatch, - css::util::URL& rURL); + css::util::URL const & rURL); virtual ~HelpStatusListener_Impl() override; virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override; diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx index d0d36941f590..ff7898eaded1 100644 --- a/sfx2/source/appl/impldde.cxx +++ b/sfx2/source/appl/impldde.cxx @@ -61,13 +61,13 @@ class SvDDELinkEditDialog : public ModalDialog DECL_LINK( EditHdl_Impl, Edit&, void ); public: - SvDDELinkEditDialog( vcl::Window* pParent, SvBaseLink* ); + SvDDELinkEditDialog( vcl::Window* pParent, SvBaseLink const * ); virtual ~SvDDELinkEditDialog() override; virtual void dispose() override; OUString GetCmd() const; }; -SvDDELinkEditDialog::SvDDELinkEditDialog( vcl::Window* pParent, SvBaseLink* pLink ) +SvDDELinkEditDialog::SvDDELinkEditDialog( vcl::Window* pParent, SvBaseLink const * pLink ) : ModalDialog( pParent, "LinkEditDialog", "sfx/ui/linkeditdialog.ui" ) { get(m_pOKButton, "ok"); |