diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-23 22:20:47 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-23 23:32:46 +0200 |
commit | 1ba34e905f717f15afabb514d9740d53c85e4af4 (patch) | |
tree | cbeb88f44e07f4e09c6a2f8549f780d4a5382743 /starmath | |
parent | d29bd2ac60bcb6ad15d9746303e0d54747eca4b1 (diff) |
Optimize names transforming
Remove lambda and one extra begin() call.
6ffdc88e79904882e319bdd0b901e7491abae0b3 follow-up
Change-Id: Ieb427704112f4d52c044147a5162921448f0590d
Reviewed-on: https://gerrit.libreoffice.org/76205
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cfgitem.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 5b6b900e051c..4636df044b08 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -373,9 +373,8 @@ void SmMathConfig::ReadSymbol( SmSym &rSymbol, sal_Int32 nProps = aNames.getLength(); OUString aDelim( "/" ); - std::transform(aNames.begin(), aNames.end(), aNames.begin(), - [&rBaseNode, &rSymbolName, &aDelim](const OUString& rName) -> OUString { - return rBaseNode + aDelim + rSymbolName + aDelim + rName; }); + for (auto& rName : aNames) + rName = rBaseNode + aDelim + rSymbolName + aDelim + rName; const Sequence< Any > aValues = const_cast<SmMathConfig*>(this)->GetProperties(aNames); @@ -580,9 +579,8 @@ void SmMathConfig::ReadFontFormat( SmFontFormat &rFontFormat, sal_Int32 nProps = aNames.getLength(); OUString aDelim( "/" ); - std::transform(aNames.begin(), aNames.end(), aNames.begin(), - [&rBaseNode, &rSymbolName, &aDelim](const OUString& rName) -> OUString { - return rBaseNode + aDelim + rSymbolName + aDelim + rName; }); + for (auto& rName : aNames) + rName = rBaseNode + aDelim + rSymbolName + aDelim + rName; const Sequence< Any > aValues = const_cast<SmMathConfig*>(this)->GetProperties(aNames); |