Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/StringMap.h

Issue 29404555: Noissue - Use iterators syntax consistently (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created April 6, 2017, 8 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiled/filter/ActiveFilter.cpp » ('j') | compiled/filter/ElemHideBase.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/StringMap.h
===================================================================
--- a/compiled/StringMap.h
+++ b/compiled/StringMap.h
@@ -319,18 +319,18 @@ public:
explicit StringMap(size_type expectedEntries = 0)
: super(expectedEntries)
{
}
StringMap(std::initializer_list<entry_type> list)
: super(list.size())
{
- for (auto it = list.begin(); it != list.end(); ++it)
- super::insert(*it);
+ for (const auto& item : list)
+ super::insert(item);
}
~StringMap()
{
}
T& operator[](const String& key)
{
« no previous file with comments | « no previous file | compiled/filter/ActiveFilter.cpp » ('j') | compiled/filter/ElemHideBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld