Switch smn_maplists off KTrie (bug 5884 part 4, r=ds).

This commit is contained in:
David Anderson
2013-08-25 11:59:47 -07:00
parent 414440589e
commit a8ab617ee9
2 changed files with 26 additions and 21 deletions
+12
View File
@@ -125,6 +125,13 @@ public:
return table_.add(i, value);
}
bool contains(const char *aKey)
{
CharsAndLength key(aKey);
Result r = table_.find(aKey);
return r.found();
}
bool remove(const char *aKey)
{
CharsAndLength key(aKey);
@@ -135,6 +142,11 @@ public:
return true;
}
void clear()
{
table_.clear();
}
private:
Internal table_;
};