Use emplace_back instead of push_back (Formula)

Change-Id: I6596e9d002016e5b501900fe9da26b5910cf7653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161307
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet 2023-12-26 17:41:17 +01:00
parent 1d1d5522ed
commit 7ad6ae594f

View file

@ -149,7 +149,7 @@ void FormulaHelper::FillArgStrings( std::u16string_view rFormula,
nEnd = GetArgStart( rFormula, nFuncPos, i+1 );
if ( nEnd != nStart )
_rArgs.push_back(OUString(rFormula.substr( nStart, nEnd-1-nStart )));
_rArgs.emplace_back(rFormula.substr( nStart, nEnd-1-nStart ));
else
{
_rArgs.emplace_back();
@ -160,7 +160,7 @@ void FormulaHelper::FillArgStrings( std::u16string_view rFormula,
{
nEnd = GetFunctionEnd( rFormula, nFuncPos )-1;
if ( nStart < nEnd )
_rArgs.push_back( OUString(rFormula.substr( nStart, nEnd-nStart )) );
_rArgs.emplace_back(rFormula.substr( nStart, nEnd-nStart ));
else
_rArgs.emplace_back();
}