Switch ConsoleDetours off KTrie (bug 5884 part 9, r=ds).

This commit is contained in:
David Anderson
2013-08-25 12:15:26 -07:00
parent 77c7b312ea
commit 0235d57625
3 changed files with 30 additions and 42 deletions
+5
View File
@@ -115,6 +115,7 @@ public:
}
typedef typename Internal::Result Result;
typedef typename Internal::iterator iterator;
// Some KTrie-like helper functions.
bool retrieve(const char *aKey, T *aResult = NULL)
@@ -191,6 +192,10 @@ public:
internal_.clear();
}
iterator iter() {
return internal_.iter();
}
size_t mem_usage() const {
return internal_.estimateMemoryUse() + memory_used_;
}