Kaydet (Commit) 76badcaf authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in extensions,scripting,sdext

Change-Id: I3d47e144db17358bf6e2e5e3f4ad29de888c01b1
Reviewed-on: https://gerrit.libreoffice.org/40583Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b1a1baa6
...@@ -55,7 +55,7 @@ namespace ...@@ -55,7 +55,7 @@ namespace
{ {
/// Returns the URL of this object shell. /// Returns the URL of this object shell.
OUString lcl_getOwnURL(SfxObjectShell* pObjectShell) OUString lcl_getOwnURL(SfxObjectShell const * pObjectShell)
{ {
OUString aRet; OUString aRet;
......
...@@ -630,7 +630,7 @@ namespace dbp ...@@ -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!"); DBG_ASSERT(m_aContext.xObjectModel.is(), "OControlWizard::commitControlSettings: have no control model to work with!");
if (!m_aContext.xObjectModel.is()) if (!m_aContext.xObjectModel.is())
......
...@@ -126,7 +126,7 @@ namespace dbp ...@@ -126,7 +126,7 @@ namespace dbp
// with some common data extracted from the control model // with some common data extracted from the control model
void initControlSettings(OControlWizardSettings* _pSettings); void initControlSettings(OControlWizardSettings* _pSettings);
// commit the control-relevant settings // commit the control-relevant settings
void commitControlSettings(OControlWizardSettings* _pSettings); void commitControlSettings(OControlWizardSettings const * _pSettings);
bool needDatasourceSelection(); bool needDatasourceSelection();
......
...@@ -141,7 +141,7 @@ namespace pcr ...@@ -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); const SvNumberformat* pEntry = _pNF->GetEntry(_nFormatKey);
DBG_ASSERT( pEntry, "OFormattedNumericControl::SetFormatDescription: invalid format key!" ); DBG_ASSERT( pEntry, "OFormattedNumericControl::SetFormatDescription: invalid format key!" );
......
...@@ -77,7 +77,7 @@ namespace pcr ...@@ -77,7 +77,7 @@ namespace pcr
* \param _nFormatKey the format key * \param _nFormatKey the format key
* \return current date or time or the value 1234.56789 * \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: private:
static double getPreviewValue( const SvNumberformat& i_rEntry ); static double getPreviewValue( const SvNumberformat& i_rEntry );
......
...@@ -57,7 +57,7 @@ class GridWindow : public vcl::Window ...@@ -57,7 +57,7 @@ class GridWindow : public vcl::Window
rRenderContext.DrawBitmapEx(maPos - aOffset, rBitmapEx); 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 Point aOffset(rWin.PixelToLogic(Point(mnOffX, mnOffY)));
const tools::Rectangle aTarget(maPos - aOffset, maPos + aOffset); const tools::Rectangle aTarget(maPos - aOffset, maPos + aOffset);
...@@ -111,7 +111,7 @@ class GridWindow : public vcl::Window ...@@ -111,7 +111,7 @@ class GridWindow : public vcl::Window
void computeExtremes(); void computeExtremes();
static void computeChunk( double fMin, double fMax, double& fChunkOut, double& fMinChunkOut ); static void computeChunk( double fMin, double fMax, double& fChunkOut, double& fMinChunkOut );
void computeNew(); 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 MouseMove( const MouseEvent& ) override;
virtual void MouseButtonDown( const MouseEvent& ) override; virtual void MouseButtonDown( const MouseEvent& ) override;
...@@ -414,8 +414,8 @@ void GridWindow::computeNew() ...@@ -414,8 +414,8 @@ void GridWindow::computeNew()
double GridWindow::interpolate( double GridWindow::interpolate(
double x, double x,
double* pNodeX, double const * pNodeX,
double* pNodeY, double const * pNodeY,
int nNodes ) int nNodes )
{ {
// compute Lagrange interpolation // compute Lagrange interpolation
......
...@@ -159,7 +159,7 @@ private: ...@@ -159,7 +159,7 @@ private:
VclPtr<BubbleWindow> GetBubbleWindow(); VclPtr<BubbleWindow> GetBubbleWindow();
void RemoveBubbleWindow( bool bRemoveIcon ); void RemoveBubbleWindow( bool bRemoveIcon );
void AddMenuBarIcon( SystemWindow* pSysWin, bool bAddEventHdl ); void AddMenuBarIcon( SystemWindow* pSysWin, bool bAddEventHdl );
Image GetBubbleImage( OUString &rURL ); Image GetBubbleImage( OUString const &rURL );
public: public:
explicit UpdateCheckUI(const uno::Reference<uno::XComponentContext>&); explicit UpdateCheckUI(const uno::Reference<uno::XComponentContext>&);
...@@ -238,7 +238,7 @@ UpdateCheckUI::supportsService( OUString const & serviceName ) ...@@ -238,7 +238,7 @@ UpdateCheckUI::supportsService( OUString const & serviceName )
return cppu::supportsService(this, serviceName); return cppu::supportsService(this, serviceName);
} }
Image UpdateCheckUI::GetBubbleImage( OUString &rURL ) Image UpdateCheckUI::GetBubbleImage( OUString const &rURL )
{ {
Image aImage; Image aImage;
......
...@@ -194,7 +194,7 @@ namespace dlgprov ...@@ -194,7 +194,7 @@ namespace dlgprov
throw RuntimeException(); // more text info here please throw RuntimeException(); // more text info here please
return it->second; return it->second;
} }
Reference< XScriptEventsSupplier > DialogEventsAttacherImpl::getFakeVbaEventsSupplier( const Reference< XControl >& xControl, OUString& sControlName ) Reference< XScriptEventsSupplier > DialogEventsAttacherImpl::getFakeVbaEventsSupplier( const Reference< XControl >& xControl, OUString const & sControlName )
{ {
Reference< XScriptEventsSupplier > xEventsSupplier; Reference< XScriptEventsSupplier > xEventsSupplier;
Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager() ); Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager() );
......
...@@ -54,7 +54,7 @@ namespace dlgprov ...@@ -54,7 +54,7 @@ namespace dlgprov
css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher; css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher;
/// @throws css::uno::RuntimeException /// @throws css::uno::RuntimeException
css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName ); css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName );
css::uno::Reference< css::script::XScriptEventsSupplier > getFakeVbaEventsSupplier( const css::uno::Reference< css::awt::XControl>& xControl, OUString& sCodeName ); css::uno::Reference< css::script::XScriptEventsSupplier > getFakeVbaEventsSupplier( const css::uno::Reference< css::awt::XControl>& xControl, OUString const & sCodeName );
void nestedAttachEvents( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& Objects, const css::uno::Any& Helper, OUString& sDialogCodeName ); void nestedAttachEvents( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& Objects, const css::uno::Any& Helper, OUString& sDialogCodeName );
void attachEventsToControl( const css::uno::Reference< css::awt::XControl>& xControl, const css::uno::Reference< css::script::XScriptEventsSupplier >& events, const css::uno::Any& Helper ); void attachEventsToControl( const css::uno::Reference< css::awt::XControl>& xControl, const css::uno::Reference< css::script::XScriptEventsSupplier >& events, const css::uno::Any& Helper );
public: public:
......
...@@ -126,7 +126,7 @@ static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString& ...@@ -126,7 +126,7 @@ static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString&
} }
static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString& prop ) static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString const & prop )
{ {
css::uno::Any result; css::uno::Any result;
try try
......
...@@ -1701,7 +1701,7 @@ OUString implGetNameScemeForLocaleItem( const LocaleItem* pLocaleItem ) ...@@ -1701,7 +1701,7 @@ OUString implGetNameScemeForLocaleItem( const LocaleItem* pLocaleItem )
} }
OUString StringResourcePersistenceImpl::implGetFileNameForLocaleItem OUString StringResourcePersistenceImpl::implGetFileNameForLocaleItem
( LocaleItem* pLocaleItem, const OUString& aNameBase ) ( LocaleItem const * pLocaleItem, const OUString& aNameBase )
{ {
OUString aFileName = aNameBase; OUString aFileName = aNameBase;
if( aFileName.isEmpty() ) if( aFileName.isEmpty() )
...@@ -1712,7 +1712,7 @@ OUString StringResourcePersistenceImpl::implGetFileNameForLocaleItem ...@@ -1712,7 +1712,7 @@ OUString StringResourcePersistenceImpl::implGetFileNameForLocaleItem
} }
OUString StringResourcePersistenceImpl::implGetPathForLocaleItem OUString StringResourcePersistenceImpl::implGetPathForLocaleItem
( LocaleItem* pLocaleItem, const OUString& aNameBase, ( LocaleItem const * pLocaleItem, const OUString& aNameBase,
const OUString& aLocation, bool bDefaultFile ) const OUString& aLocation, bool bDefaultFile )
{ {
OUString aFileName = implGetFileNameForLocaleItem( pLocaleItem, aNameBase ); OUString aFileName = implGetFileNameForLocaleItem( pLocaleItem, aNameBase );
......
...@@ -223,8 +223,8 @@ protected: ...@@ -223,8 +223,8 @@ protected:
virtual void implLoadAllLocales() override; virtual void implLoadAllLocales() override;
void implScanLocaleNames( const css::uno::Sequence< OUString >& aContentSeq ); void implScanLocaleNames( const css::uno::Sequence< OUString >& aContentSeq );
static OUString implGetFileNameForLocaleItem( LocaleItem* pLocaleItem, const OUString& aNameBase ); static OUString implGetFileNameForLocaleItem( LocaleItem const * pLocaleItem, const OUString& aNameBase );
static OUString implGetPathForLocaleItem( LocaleItem* pLocaleItem, const OUString& aNameBase, static OUString implGetPathForLocaleItem( LocaleItem const * pLocaleItem, const OUString& aNameBase,
const OUString& aLocation, bool bDefaultFile=false ); const OUString& aLocation, bool bDefaultFile=false );
bool implReadPropertiesFile( LocaleItem* pLocaleItem, bool implReadPropertiesFile( LocaleItem* pLocaleItem,
......
...@@ -303,7 +303,7 @@ void InformationDialog::InitDialog() ...@@ -303,7 +303,7 @@ void InformationDialog::InitDialog()
} }
InformationDialog::InformationDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame >& rxFrame, const OUString& rSaveAsURL, bool& rbOpenNewDocument, sal_Int64 rSourceSize, sal_Int64 rDestSize, sal_Int64 rApproxSize ) : InformationDialog::InformationDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame > const & rxFrame, const OUString& rSaveAsURL, bool& rbOpenNewDocument, sal_Int64 rSourceSize, sal_Int64 rDestSize, sal_Int64 rApproxSize ) :
UnoDialog( rxContext, rxFrame ), UnoDialog( rxContext, rxFrame ),
ConfigurationAccess( rxContext ), ConfigurationAccess( rxContext ),
mxActionListener( new OKActionListener( *this ) ), mxActionListener( new OKActionListener( *this ) ),
......
...@@ -42,8 +42,8 @@ class InformationDialog : public UnoDialog, public ConfigurationAccess ...@@ -42,8 +42,8 @@ class InformationDialog : public UnoDialog, public ConfigurationAccess
public: public:
InformationDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext, InformationDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
css::uno::Reference< css::frame::XFrame >& rxFrame, const OUString& rSaveAsURL, css::uno::Reference< css::frame::XFrame > const & rxFrame, const OUString& rSaveAsURL,
bool& bOpenNewDocument, sal_Int64 nSourceSize, sal_Int64 nDestSize, sal_Int64 nApproxDest ); bool& bOpenNewDocument, sal_Int64 nSourceSize, sal_Int64 nDestSize, sal_Int64 nApproxDest );
~InformationDialog(); ~InformationDialog();
void execute(); void execute();
......
...@@ -192,7 +192,7 @@ void OptimizerDialog::UpdateConfiguration() ...@@ -192,7 +192,7 @@ void OptimizerDialog::UpdateConfiguration()
} }
OptimizerDialog::OptimizerDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame >& rxFrame, Reference< XDispatch > const & rxStatusDispatcher ) : OptimizerDialog::OptimizerDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame > const & rxFrame, Reference< XDispatch > const & rxStatusDispatcher ) :
UnoDialog( rxContext, rxFrame ), UnoDialog( rxContext, rxFrame ),
ConfigurationAccess( rxContext ), ConfigurationAccess( rxContext ),
mnCurrentStep( 0 ), mnCurrentStep( 0 ),
......
...@@ -60,7 +60,7 @@ class OptimizerDialog : public UnoDialog, public ConfigurationAccess ...@@ -60,7 +60,7 @@ class OptimizerDialog : public UnoDialog, public ConfigurationAccess
{ {
public: public:
OptimizerDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext, css::uno::Reference< css::frame::XFrame >& rxFrame, OptimizerDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext, css::uno::Reference< css::frame::XFrame > const & rxFrame,
css::uno::Reference< css::frame::XDispatch > const & rxStatusDispatcher ); css::uno::Reference< css::frame::XDispatch > const & rxStatusDispatcher );
~OptimizerDialog(); ~OptimizerDialog();
......
...@@ -38,7 +38,7 @@ using namespace ::com::sun::star::view; ...@@ -38,7 +38,7 @@ using namespace ::com::sun::star::view;
using namespace ::com::sun::star::frame; using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::beans; using namespace ::com::sun::star::beans;
UnoDialog::UnoDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame >& rxFrame ) : UnoDialog::UnoDialog( const Reference< XComponentContext > &rxContext, Reference< XFrame > const & rxFrame ) :
mxContext( rxContext ), mxContext( rxContext ),
mxController( rxFrame->getController() ), mxController( rxFrame->getController() ),
mxDialogModel( mxContext->getServiceManager()->createInstanceWithContext( mxDialogModel( mxContext->getServiceManager()->createInstanceWithContext(
......
...@@ -53,7 +53,7 @@ class UnoDialog ...@@ -53,7 +53,7 @@ class UnoDialog
{ {
public: public:
UnoDialog( const css::uno::Reference< css::uno::XComponentContext >& rxMSF, css::uno::Reference< css::frame::XFrame >& rxFrame ); UnoDialog( const css::uno::Reference< css::uno::XComponentContext >& rxMSF, css::uno::Reference< css::frame::XFrame > const & rxFrame );
~UnoDialog(); ~UnoDialog();
void execute(); void execute();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment