Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3055)

Unified Diff: src/jsregexp-inl.h

Issue 10944: Restructure analysis (Closed)
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/jsregexp.cc ('k') | src/string-stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jsregexp-inl.h
diff --git a/src/jsregexp-inl.h b/src/jsregexp-inl.h
index 890adced0064d5280b5202d28aac6141cec9ef73..a7c80146979bc3ca48b7045a34fb33583f14a674 100644
--- a/src/jsregexp-inl.h
+++ b/src/jsregexp-inl.h
@@ -245,10 +245,10 @@ void ZoneSplayTree<C>::Splay(const Key& key) {
template <typename Node, class Callback>
-static void DoForEach(Node* node, Callback callback) {
+static void DoForEach(Node* node, Callback* callback) {
if (node == NULL) return;
DoForEach<Node, Callback>(node->left(), callback);
- callback.Call(node->key(), node->value());
+ callback->Call(node->key(), node->value());
DoForEach<Node, Callback>(node->right(), callback);
}
« no previous file with comments | « src/jsregexp.cc ('k') | src/string-stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698