diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-08 08:50:52 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-08 08:14:16 +0000 |
commit | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (patch) | |
tree | cbf5a3c3f63b58c4f4b16c39c7c636e95f36c711 /svl | |
parent | ce72e34b359c323ef7ff96a70500810a9cd8703a (diff) |
sfx2 classification: use auto where it improves code readability
std::map<OUString, basegfx::BColor>::iterator itColor = aColors.find(aLevel);
vs
auto itColor = aColors.find(aLevel);
and so on.
(And do the same at two other places as well.)
Change-Id: I538998c8b8afdf18a7eb139fa4d469205c561370
Reviewed-on: https://gerrit.libreoffice.org/26046
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/grabbagitem.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx index 2ed43f672785..c9eb63450bb3 100644 --- a/svl/source/items/grabbagitem.cxx +++ b/svl/source/items/grabbagitem.cxx @@ -74,10 +74,10 @@ bool SfxGrabBagItem::QueryValue(uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { uno::Sequence<beans::PropertyValue> aValue(m_aMap.size()); beans::PropertyValue* pValue = aValue.getArray(); - for (std::map<OUString, uno::Any>::const_iterator i = m_aMap.begin(); i != m_aMap.end(); ++i) + for (const auto& i : m_aMap) { - pValue[0].Name = i->first; - pValue[0].Value = i->second; + pValue[0].Name = i.first; + pValue[0].Value = i.second; ++pValue; } rVal = uno::makeAny(aValue); |