Use emplace_back instead of push_back (scaddins)
Change-Id: I08b22351a3e75d5accbb3e59890f5e04b8fbb6d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161333 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
@@ -1368,7 +1368,7 @@ sal_uInt16 FuncData::GetStrIndex( sal_uInt16 nParamNum ) const
|
||||
void InitFuncDataList(FuncDataList& rList)
|
||||
{
|
||||
for(const auto & rFuncData : pFuncDatas)
|
||||
rList.push_back(FuncData(rFuncData));
|
||||
rList.emplace_back(rFuncData);
|
||||
}
|
||||
|
||||
SortedIndividualInt32List::SortedIndividualInt32List()
|
||||
|
||||
@@ -82,7 +82,7 @@ sal_uInt16 ScaFuncData::GetStrIndex( sal_uInt16 nParam ) const
|
||||
static void InitScaFuncDataList(ScaFuncDataList& rList)
|
||||
{
|
||||
for (const auto & nIndex : pFuncDataArr)
|
||||
rList.push_back(ScaFuncData(nIndex));
|
||||
rList.emplace_back(nIndex);
|
||||
}
|
||||
|
||||
// entry points for service registration / instantiation
|
||||
|
||||
@@ -75,7 +75,7 @@ sal_uInt16 ScaFuncData::GetStrIndex( sal_uInt16 nParam ) const
|
||||
void sca::pricing::InitScaFuncDataList(ScaFuncDataList& rList)
|
||||
{
|
||||
for (const auto & nIndex : pFuncDataArr)
|
||||
rList.push_back(ScaFuncData(nIndex));
|
||||
rList.emplace_back(nIndex);
|
||||
}
|
||||
|
||||
// entry points for service registration / instantiation
|
||||
|
||||
Reference in New Issue
Block a user