diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-27 23:29:01 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-28 17:33:40 +0200 |
commit | 1e084caf573255a93ce86053d584976f317074df (patch) | |
tree | 9340232dd2ae3b3f38f4c8e996f93587adbb7fb8 /unotools/source/config/confignode.cxx | |
parent | 41cf4e6604bfb9b51ce54c5ea64d77249c7545d7 (diff) |
Simplify Sequence iterations in unotools
Use range-based loops or replace with STL functions
Change-Id: I220c5cd5dcc19fc35e1ad729ae69246f4a79ce2d
Reviewed-on: https://gerrit.libreoffice.org/74825
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'unotools/source/config/confignode.cxx')
-rw-r--r-- | unotools/source/config/confignode.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx index 64ea55ced8c5..bb5760ccfbbd 100644 --- a/unotools/source/config/confignode.cxx +++ b/unotools/source/config/confignode.cxx @@ -192,9 +192,8 @@ namespace utl { aReturn = m_xDirectAccess->getElementNames(); // normalize the names - OUString* pNames = aReturn.getArray(); - for (sal_Int32 i=0; i<aReturn.getLength(); ++i, ++pNames) - *pNames = normalizeName(*pNames, NO_CONFIGURATION); + std::transform(aReturn.begin(), aReturn.end(), aReturn.begin(), + [this](const OUString& rName) -> OUString { return normalizeName(rName, NO_CONFIGURATION); }); } catch(Exception&) { |