summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-08 08:50:52 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-12 22:06:16 -0400
commit776b74a545216ac71e15c8d5299cb66398a6e7c2 (patch)
tree5f03db426632ed644168c28c6f8cb939a0b888ee /svl
parentCppunitTest_o3tl_tests: fix loplugin:cppunitassertequals warnings in ... (diff)
downloadcore-776b74a545216ac71e15c8d5299cb66398a6e7c2.tar.gz
core-776b74a545216ac71e15c8d5299cb66398a6e7c2.zip
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.) Reviewed-on: https://gerrit.libreoffice.org/26046 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 42dae96f97bfcc44d5e6ccf727e1cdb178123d56) Change-Id: I538998c8b8afdf18a7eb139fa4d469205c561370
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/grabbagitem.cxx6
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);