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

Unified Diff: compiled/StringMap.h

Issue 29556737: Issue 5141 - Convert filter match to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Some more cleanup Created Sept. 29, 2017, 4:12 p.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
Index: compiled/StringMap.h
===================================================================
--- a/compiled/StringMap.h
+++ b/compiled/StringMap.h
@@ -232,16 +232,21 @@
{
return const_iterator(&mBuckets[mBucketCount], &mBuckets[mBucketCount]);
}
size_type size() const
{
return mEntryCount;
}
+
+ void clear()
+ {
+ resize(0);
sergei 2017/10/02 12:02:33 I'm not sure that `resize` expects a value, lower
sergei 2017/10/04 08:54:31 This is not addressed.
sergei 2017/10/06 09:33:56 What about creation of an `init(size_type expected
hub 2017/10/06 13:49:16 Done.
hub 2017/10/06 13:49:16 that's the approach I took.
+ }
};
struct StringSetEntry
{
StringSetEntry() {}
StringSetEntry(const String& key)
: first(key)
{

Powered by Google App Engine
This is Rietveld