diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 10:36:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 13:05:06 +0200 |
commit | 76badcaf7a426458be55355427d6ef689d62ac69 (patch) | |
tree | 8132c33fd850d19055c1750f6c6499ca1685ce82 /extensions | |
parent | b1a1baa66a8eb0553df87769d48e3cc7e533a1d8 (diff) |
loplugin:constparams in extensions,scripting,sdext
Change-Id: I3d47e144db17358bf6e2e5e3f4ad29de888c01b1
Reviewed-on: https://gerrit.libreoffice.org/40583
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 2 | ||||
-rw-r--r-- | extensions/source/dbpilots/controlwizard.cxx | 2 | ||||
-rw-r--r-- | extensions/source/dbpilots/controlwizard.hxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/usercontrol.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/usercontrol.hxx | 2 | ||||
-rw-r--r-- | extensions/source/scanner/grid.cxx | 8 | ||||
-rw-r--r-- | extensions/source/update/ui/updatecheckui.cxx | 4 |
7 files changed, 11 insertions, 11 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index dbefd25ae7d3..bb3eae445187 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -55,7 +55,7 @@ namespace { /// Returns the URL of this object shell. -OUString lcl_getOwnURL(SfxObjectShell* pObjectShell) +OUString lcl_getOwnURL(SfxObjectShell const * pObjectShell) { OUString aRet; diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx index e3b9b80bcd07..d7e4881d6b08 100644 --- a/extensions/source/dbpilots/controlwizard.cxx +++ b/extensions/source/dbpilots/controlwizard.cxx @@ -630,7 +630,7 @@ namespace dbp } - void OControlWizard::commitControlSettings(OControlWizardSettings* _pSettings) + void OControlWizard::commitControlSettings(OControlWizardSettings const * _pSettings) { DBG_ASSERT(m_aContext.xObjectModel.is(), "OControlWizard::commitControlSettings: have no control model to work with!"); if (!m_aContext.xObjectModel.is()) diff --git a/extensions/source/dbpilots/controlwizard.hxx b/extensions/source/dbpilots/controlwizard.hxx index faebb6edd7f2..4ae22c35f5d9 100644 --- a/extensions/source/dbpilots/controlwizard.hxx +++ b/extensions/source/dbpilots/controlwizard.hxx @@ -126,7 +126,7 @@ namespace dbp // with some common data extracted from the control model void initControlSettings(OControlWizardSettings* _pSettings); // commit the control-relevant settings - void commitControlSettings(OControlWizardSettings* _pSettings); + void commitControlSettings(OControlWizardSettings const * _pSettings); bool needDatasourceSelection(); diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index 66186a56cdbc..a030a867deed 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -141,7 +141,7 @@ namespace pcr } - double OFormatSampleControl::getPreviewValue(SvNumberFormatter* _pNF,sal_Int32 _nFormatKey) + double OFormatSampleControl::getPreviewValue(SvNumberFormatter const * _pNF, sal_Int32 _nFormatKey) { const SvNumberformat* pEntry = _pNF->GetEntry(_nFormatKey); DBG_ASSERT( pEntry, "OFormattedNumericControl::SetFormatDescription: invalid format key!" ); diff --git a/extensions/source/propctrlr/usercontrol.hxx b/extensions/source/propctrlr/usercontrol.hxx index 6fc75e2e007f..06e01d8a00ef 100644 --- a/extensions/source/propctrlr/usercontrol.hxx +++ b/extensions/source/propctrlr/usercontrol.hxx @@ -77,7 +77,7 @@ namespace pcr * \param _nFormatKey the format key * \return current date or time or the value 1234.56789 */ - static double getPreviewValue(SvNumberFormatter* _pNF,sal_Int32 _nFormatKey); + static double getPreviewValue(SvNumberFormatter const * _pNF, sal_Int32 _nFormatKey); private: static double getPreviewValue( const SvNumberformat& i_rEntry ); diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx index 9867fc6d000a..ca51e40f32bb 100644 --- a/extensions/source/scanner/grid.cxx +++ b/extensions/source/scanner/grid.cxx @@ -57,7 +57,7 @@ class GridWindow : public vcl::Window rRenderContext.DrawBitmapEx(maPos - aOffset, rBitmapEx); } - bool isHit(vcl::Window& rWin, const Point& rPos) + bool isHit(vcl::Window const & rWin, const Point& rPos) { const Point aOffset(rWin.PixelToLogic(Point(mnOffX, mnOffY))); const tools::Rectangle aTarget(maPos - aOffset, maPos + aOffset); @@ -111,7 +111,7 @@ class GridWindow : public vcl::Window void computeExtremes(); static void computeChunk( double fMin, double fMax, double& fChunkOut, double& fMinChunkOut ); void computeNew(); - static double interpolate( double x, double* pNodeX, double* pNodeY, int nNodes ); + static double interpolate( double x, double const * pNodeX, double const * pNodeY, int nNodes ); virtual void MouseMove( const MouseEvent& ) override; virtual void MouseButtonDown( const MouseEvent& ) override; @@ -414,8 +414,8 @@ void GridWindow::computeNew() double GridWindow::interpolate( double x, - double* pNodeX, - double* pNodeY, + double const * pNodeX, + double const * pNodeY, int nNodes ) { // compute Lagrange interpolation diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx index bf530dbaffd2..b271c8f4eea2 100644 --- a/extensions/source/update/ui/updatecheckui.cxx +++ b/extensions/source/update/ui/updatecheckui.cxx @@ -159,7 +159,7 @@ private: VclPtr<BubbleWindow> GetBubbleWindow(); void RemoveBubbleWindow( bool bRemoveIcon ); void AddMenuBarIcon( SystemWindow* pSysWin, bool bAddEventHdl ); - Image GetBubbleImage( OUString &rURL ); + Image GetBubbleImage( OUString const &rURL ); public: explicit UpdateCheckUI(const uno::Reference<uno::XComponentContext>&); @@ -238,7 +238,7 @@ UpdateCheckUI::supportsService( OUString const & serviceName ) return cppu::supportsService(this, serviceName); } -Image UpdateCheckUI::GetBubbleImage( OUString &rURL ) +Image UpdateCheckUI::GetBubbleImage( OUString const &rURL ) { Image aImage; |