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:
parent
1d1d5522ed
commit
7ad6ae594f
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue