clang-tidy performance-unnecessary-value-param in formula
Change-Id: I9f90c55f74216c2f3452e5b30d85b304668330b3
This commit is contained in:
@@ -150,7 +150,7 @@ public:
|
||||
|
||||
private:
|
||||
bool getOpCodeString( OUString& rStr, sal_uInt16 nOp );
|
||||
void putDefaultOpCode( FormulaCompiler::NonConstOpCodeMapPtr xMap, sal_uInt16 nOp, const CharClass* pCharClass );
|
||||
void putDefaultOpCode( const FormulaCompiler::NonConstOpCodeMapPtr& xMap, sal_uInt16 nOp, const CharClass* pCharClass );
|
||||
|
||||
private:
|
||||
FormulaCompiler::SeparatorType meSepType;
|
||||
@@ -236,7 +236,7 @@ bool OpCodeList::getOpCodeString( OUString& rStr, sal_uInt16 nOp )
|
||||
return false;
|
||||
}
|
||||
|
||||
void OpCodeList::putDefaultOpCode( FormulaCompiler::NonConstOpCodeMapPtr xMap, sal_uInt16 nOp,
|
||||
void OpCodeList::putDefaultOpCode( const FormulaCompiler::NonConstOpCodeMapPtr& xMap, sal_uInt16 nOp,
|
||||
const CharClass* pCharClass )
|
||||
{
|
||||
ResId aRes( nOp, *ResourceManager::getResManager());
|
||||
@@ -767,15 +767,15 @@ void FormulaCompiler::loadSymbols( sal_uInt16 nSymbols, FormulaGrammar::Grammar
|
||||
}
|
||||
}
|
||||
|
||||
void FormulaCompiler::fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr /*xMap */) const
|
||||
void FormulaCompiler::fillFromAddInCollectionUpperName( const NonConstOpCodeMapPtr& /*xMap */) const
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaCompiler::fillFromAddInCollectionEnglishName( NonConstOpCodeMapPtr /*xMap */) const
|
||||
void FormulaCompiler::fillFromAddInCollectionEnglishName( const NonConstOpCodeMapPtr& /*xMap */) const
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaCompiler::fillFromAddInMap( NonConstOpCodeMapPtr /*xMap*/, FormulaGrammar::Grammar /*_eGrammar */) const
|
||||
void FormulaCompiler::fillFromAddInMap( const NonConstOpCodeMapPtr& /*xMap*/, FormulaGrammar::Grammar /*_eGrammar */) const
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -271,9 +271,9 @@ public:
|
||||
|
||||
protected:
|
||||
virtual OUString FindAddInFunction( const OUString& rUpperName, bool bLocalFirst ) const;
|
||||
virtual void fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr xMap ) const;
|
||||
virtual void fillFromAddInMap( NonConstOpCodeMapPtr xMap, FormulaGrammar::Grammar _eGrammar ) const;
|
||||
virtual void fillFromAddInCollectionEnglishName( NonConstOpCodeMapPtr xMap ) const;
|
||||
virtual void fillFromAddInCollectionUpperName( const NonConstOpCodeMapPtr& xMap ) const;
|
||||
virtual void fillFromAddInMap( const NonConstOpCodeMapPtr& xMap, FormulaGrammar::Grammar _eGrammar ) const;
|
||||
virtual void fillFromAddInCollectionEnglishName( const NonConstOpCodeMapPtr& xMap ) const;
|
||||
virtual void fillAddInToken(::std::vector< css::sheet::FormulaOpCodeMapEntry >& _rVec, bool _bIsEnglish) const;
|
||||
|
||||
virtual void SetError(sal_uInt16 nError);
|
||||
|
@@ -445,9 +445,9 @@ public:
|
||||
private:
|
||||
// FormulaCompiler
|
||||
virtual OUString FindAddInFunction( const OUString& rUpperName, bool bLocalFirst ) const override;
|
||||
virtual void fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr xMap ) const override;
|
||||
virtual void fillFromAddInCollectionEnglishName( NonConstOpCodeMapPtr xMap ) const override;
|
||||
virtual void fillFromAddInMap( NonConstOpCodeMapPtr xMap, formula::FormulaGrammar::Grammar _eGrammar ) const override;
|
||||
virtual void fillFromAddInCollectionUpperName( const NonConstOpCodeMapPtr& xMap ) const override;
|
||||
virtual void fillFromAddInCollectionEnglishName( const NonConstOpCodeMapPtr& xMap ) const override;
|
||||
virtual void fillFromAddInMap( const NonConstOpCodeMapPtr& xMap, formula::FormulaGrammar::Grammar _eGrammar ) const override;
|
||||
virtual void fillAddInToken(::std::vector< css::sheet::FormulaOpCodeMapEntry >& _rVec,bool _bIsEnglish) const override;
|
||||
|
||||
virtual bool HandleExternalReference(const formula::FormulaToken& _aToken) override;
|
||||
|
@@ -97,7 +97,7 @@ static const sal_Char* pInternal[2] = { "TTT", "__DEBUG_VAR" };
|
||||
|
||||
using namespace ::com::sun::star::i18n;
|
||||
|
||||
void ScCompiler::fillFromAddInMap( NonConstOpCodeMapPtr xMap,FormulaGrammar::Grammar _eGrammar ) const
|
||||
void ScCompiler::fillFromAddInMap( const NonConstOpCodeMapPtr& xMap,FormulaGrammar::Grammar _eGrammar ) const
|
||||
{
|
||||
size_t nSymbolOffset;
|
||||
switch( _eGrammar )
|
||||
@@ -125,7 +125,7 @@ void ScCompiler::fillFromAddInMap( NonConstOpCodeMapPtr xMap,FormulaGrammar::Gra
|
||||
}
|
||||
}
|
||||
|
||||
void ScCompiler::fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr xMap ) const
|
||||
void ScCompiler::fillFromAddInCollectionUpperName( const NonConstOpCodeMapPtr& xMap ) const
|
||||
{
|
||||
ScUnoAddInCollection* pColl = ScGlobal::GetAddInCollection();
|
||||
long nCount = pColl->GetFuncCount();
|
||||
@@ -138,7 +138,7 @@ void ScCompiler::fillFromAddInCollectionUpperName( NonConstOpCodeMapPtr xMap ) c
|
||||
}
|
||||
}
|
||||
|
||||
void ScCompiler::fillFromAddInCollectionEnglishName( NonConstOpCodeMapPtr xMap ) const
|
||||
void ScCompiler::fillFromAddInCollectionEnglishName( const NonConstOpCodeMapPtr& xMap ) const
|
||||
{
|
||||
ScUnoAddInCollection* pColl = ScGlobal::GetAddInCollection();
|
||||
long nCount = pColl->GetFuncCount();
|
||||
|
Reference in New Issue
Block a user