vcl/source/gdi/configsettings.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit b4f440092b852a7c66f4acdd7e9b0c8e23e212ef Author: Julien Nabet <serval2...@yahoo.fr> Date: Tue Jan 30 10:35:32 2018 +0100 fixup Modernize a bit vcl (part2) Change-Id: I7eb75ef33ebb6b701668f2d99fc3d231d81168f4 Reviewed-on: https://gerrit.libreoffice.org/48890 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/source/gdi/configsettings.cxx b/vcl/source/gdi/configsettings.cxx index 8fe7e5b95ff1..a63fb540a1f6 100644 --- a/vcl/source/gdi/configsettings.cxx +++ b/vcl/source/gdi/configsettings.cxx @@ -57,16 +57,14 @@ SettingsConfigItem::~SettingsConfigItem() void SettingsConfigItem::ImplCommit() { - std::unordered_map< OUString, SmallOUStrMap >::const_iterator group; - for (auto const& setting : m_aSettings) { OUString aKeyName( setting.first ); /*bool bAdded =*/ AddNode( OUString(), aKeyName ); - Sequence< PropertyValue > aValues( group->second.size() ); + Sequence< PropertyValue > aValues( setting.second.size() ); PropertyValue* pValues = aValues.getArray(); int nIndex = 0; - for (auto const& elem : group->second) + for (auto const& elem : setting.second) { pValues[nIndex].Name = aKeyName + "/" + elem.first; pValues[nIndex].Handle = 0; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits