loplugin:constparams in formula,xmlhelp
Change-Id: I1c987d991a5b292df327d1bb921099233b5531fe Reviewed-on: https://gerrit.libreoffice.org/40584 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -67,7 +67,7 @@ void Catalog::refreshGroups()
|
||||
//----- IRefreshableUsers ----------------------------------------------------
|
||||
void Catalog::refreshUsers()
|
||||
{
|
||||
OUString sSql("SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES");
|
||||
OUString const sSql("SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES");
|
||||
|
||||
uno::Reference< XResultSet > xUsers = m_xMetaData->getConnection()
|
||||
->createStatement()->executeQuery(sSql);
|
||||
|
@@ -2590,7 +2590,7 @@ formula::ParamClass FormulaCompiler::GetForceArrayParameter( const FormulaToken*
|
||||
return ParamClass::Unknown;
|
||||
}
|
||||
|
||||
void FormulaCompiler::ForceArrayOperator( FormulaTokenRef& rCurr )
|
||||
void FormulaCompiler::ForceArrayOperator( FormulaTokenRef const & rCurr )
|
||||
{
|
||||
if (!pCurrentFactorToken || (pCurrentFactorToken.get() == rCurr.get()))
|
||||
return;
|
||||
@@ -2628,7 +2628,7 @@ void FormulaCompiler::ForceArrayOperator( FormulaTokenRef& rCurr )
|
||||
}
|
||||
}
|
||||
|
||||
void FormulaCompiler::CheckSetForceArrayParameter( FormulaTokenRef& rCurr, sal_uInt8 nParam )
|
||||
void FormulaCompiler::CheckSetForceArrayParameter( FormulaTokenRef const & rCurr, sal_uInt8 nParam )
|
||||
{
|
||||
if (!pCurrentFactorToken)
|
||||
return;
|
||||
|
@@ -121,7 +121,7 @@ public:
|
||||
void UpdateParaWin( const Selection& _rSelection, const OUString& _sRefStr);
|
||||
|
||||
void SetData( sal_Int32 nFStart, sal_Int32 nNextFStart, sal_Int32 nNextFEnd, sal_Int32& PrivStart, sal_Int32& PrivEnd);
|
||||
void PreNotify( NotifyEvent& rNEvt );
|
||||
void PreNotify( NotifyEvent const & rNEvt );
|
||||
|
||||
RefEdit* GetCurrRefEdit();
|
||||
|
||||
@@ -381,7 +381,7 @@ void FormulaDlg_Impl::StoreFormEditData(FormEditData* pData)
|
||||
}
|
||||
|
||||
|
||||
void FormulaDlg_Impl::PreNotify( NotifyEvent& rNEvt )
|
||||
void FormulaDlg_Impl::PreNotify( NotifyEvent const & rNEvt )
|
||||
{
|
||||
if (m_bIsShutDown)
|
||||
return;
|
||||
@@ -1745,7 +1745,7 @@ void FormulaDlg_Impl::SetEdSelection()
|
||||
}
|
||||
|
||||
FormulaModalDialog::FormulaModalDialog( vcl::Window* pParent
|
||||
, IFunctionManager* _pFunctionMgr
|
||||
, IFunctionManager const * _pFunctionMgr
|
||||
, IControlReferenceHandler* _pDlg )
|
||||
: ModalDialog(pParent, "FormulaDialog", "formula/ui/formuladialog.ui")
|
||||
, m_pImpl(new FormulaDlg_Impl(this, false/*_bSupportFunctionResult*/,
|
||||
@@ -1816,7 +1816,7 @@ void FormulaModalDialog::StoreFormEditData(FormEditData* pData)
|
||||
|
||||
FormulaDlg::FormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
|
||||
vcl::Window* pParent
|
||||
, IFunctionManager* _pFunctionMgr, IControlReferenceHandler* _pDlg ) :
|
||||
, IFunctionManager const * _pFunctionMgr, IControlReferenceHandler* _pDlg ) :
|
||||
SfxModelessDialog( pB, pCW, pParent, "FormulaDialog", "formula/ui/formuladialog.ui" ),
|
||||
m_pImpl( new FormulaDlg_Impl(this, true/*_bSupportFunctionResult*/
|
||||
, true/*_bSupportResult*/
|
||||
|
@@ -368,9 +368,9 @@ private:
|
||||
set ForceArray at rCurr if so. Set nParam+1 as 1-based
|
||||
nCurrentFactorParam for subsequent ForceArrayOperator() calls.
|
||||
*/
|
||||
void CheckSetForceArrayParameter( FormulaTokenRef& rCurr, sal_uInt8 nParam );
|
||||
void CheckSetForceArrayParameter( FormulaTokenRef const & rCurr, sal_uInt8 nParam );
|
||||
|
||||
void ForceArrayOperator( FormulaTokenRef& rCurr );
|
||||
void ForceArrayOperator( FormulaTokenRef const & rCurr );
|
||||
|
||||
class CurrentFactor
|
||||
{
|
||||
@@ -391,7 +391,7 @@ private:
|
||||
pCompiler->nCurrentFactorParam = nPrevParam;
|
||||
}
|
||||
// yes, this operator= may modify the RValue
|
||||
void operator=( FormulaTokenRef& r )
|
||||
void operator=( FormulaTokenRef const & r )
|
||||
{
|
||||
pCompiler->ForceArrayOperator( r );
|
||||
pCompiler->pCurrentFactorToken = r;
|
||||
|
@@ -64,7 +64,7 @@ class FORMULA_DLLPUBLIC FormulaModalDialog : public ModalDialog, public formul
|
||||
friend class FormulaDlg_Impl;
|
||||
public:
|
||||
FormulaModalDialog( vcl::Window* pParent
|
||||
,IFunctionManager* _pFunctionMgr
|
||||
,IFunctionManager const * _pFunctionMgr
|
||||
,IControlReferenceHandler* _pDlg );
|
||||
virtual ~FormulaModalDialog() override;
|
||||
virtual void dispose() override;
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
FormulaDlg( SfxBindings* pB
|
||||
, SfxChildWindow* pCW
|
||||
, vcl::Window* pParent
|
||||
, IFunctionManager* _pFunctionMgr
|
||||
, IFunctionManager const * _pFunctionMgr
|
||||
, IControlReferenceHandler* _pDlg );
|
||||
virtual ~FormulaDlg() override;
|
||||
virtual void dispose() override;
|
||||
|
@@ -423,7 +423,7 @@ private:
|
||||
pJump;
|
||||
ParamClass eInForceArray;
|
||||
public:
|
||||
FormulaJumpToken( OpCode e, short* p ) :
|
||||
FormulaJumpToken( OpCode e, short const * p ) :
|
||||
FormulaToken( formula::svJump , e),
|
||||
eInForceArray( ParamClass::Unknown)
|
||||
{
|
||||
|
@@ -430,7 +430,7 @@ FormulaToken* ScRawToken::CreateToken() const
|
||||
return new ScExternalNameToken( extname.nFileId, aName );
|
||||
}
|
||||
case svJump :
|
||||
return new FormulaJumpToken( eOp, const_cast<short*>(nJump) );
|
||||
return new FormulaJumpToken( eOp, nJump );
|
||||
case svExternal :
|
||||
return new FormulaExternalToken( eOp, sbyte.cByte, OUString( cStr+1 ) );
|
||||
case svFAP :
|
||||
|
@@ -595,10 +595,10 @@ namespace chelp {
|
||||
|
||||
}
|
||||
|
||||
KeywordInfo::KeywordElement::KeywordElement( Databases *pDatabases,
|
||||
KeywordInfo::KeywordElement::KeywordElement( Databases const *pDatabases,
|
||||
helpdatafileproxy::Hdf* pHdf,
|
||||
OUString& ky,
|
||||
OUString& data )
|
||||
OUString const & ky,
|
||||
OUString const & data )
|
||||
: key( ky )
|
||||
{
|
||||
pDatabases->replaceName( key );
|
||||
|
@@ -92,10 +92,10 @@ namespace chelp {
|
||||
|
||||
public:
|
||||
|
||||
KeywordElement( Databases* pDatabases,
|
||||
KeywordElement( Databases const * pDatabases,
|
||||
helpdatafileproxy::Hdf* pHdf,
|
||||
OUString& key,
|
||||
OUString& ids );
|
||||
OUString const & key,
|
||||
OUString const & ids );
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -32,7 +32,7 @@ using namespace com::sun::star::ucb;
|
||||
ResultSetForRoot::ResultSetForRoot( const uno::Reference< uno::XComponentContext >& rxContext,
|
||||
const uno::Reference< XContentProvider >& xProvider,
|
||||
const uno::Sequence< beans::Property >& seq,
|
||||
URLParameter& aURLParameter,
|
||||
URLParameter const & aURLParameter,
|
||||
Databases* pDatabases )
|
||||
: ResultSetBase( rxContext, xProvider,seq ),
|
||||
m_aURLParameter( aURLParameter ),
|
||||
|
@@ -39,7 +39,7 @@ namespace chelp {
|
||||
ResultSetForRoot( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const css::uno::Reference< css::ucb::XContentProvider >& xProvider,
|
||||
const css::uno::Sequence< css::beans::Property >& seq,
|
||||
URLParameter& aURLParameter,
|
||||
URLParameter const & aURLParameter,
|
||||
Databases* pDatabases );
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user