summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/WTFThreadData.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/WTFThreadData.h')
-rw-r--r--JavaScriptCore/wtf/WTFThreadData.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/JavaScriptCore/wtf/WTFThreadData.h b/JavaScriptCore/wtf/WTFThreadData.h
index 20ffaca..7f91e1a 100644
--- a/JavaScriptCore/wtf/WTFThreadData.h
+++ b/JavaScriptCore/wtf/WTFThreadData.h
@@ -59,7 +59,14 @@ public:
template<typename U, typename V>
std::pair<HashSet<StringImpl*>::iterator, bool> add(U value);
- void remove(StringImpl* r) { m_table.remove(r); }
+ bool remove(StringImpl* r)
+ {
+ HashSet<StringImpl*>::iterator iter = m_table.find(r);
+ if (iter == m_table.end())
+ return false;
+ m_table.remove(iter);
+ return true;
+ }
LiteralIdentifierTable& literalTable() { return m_literalTable; }