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

Unified Diff: regexp2000/src/list-inl.h

Issue 9110: Experimental: Fixed bug in RegExp Parser. Added feature counting in parser. (Closed)
Patch Set: Merged changes to tip of experimental branch. 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 | « regexp2000/src/list.h ('k') | regexp2000/src/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/list-inl.h
diff --git a/regexp2000/src/list-inl.h b/regexp2000/src/list-inl.h
index 28856d25cab2d16b737c982b0a74479d4172b046..eeb580323f36700fc812997dd455032f6fcb5c08 100644
--- a/regexp2000/src/list-inl.h
+++ b/regexp2000/src/list-inl.h
@@ -90,7 +90,7 @@ void List<T, P>::Iterate(void (*callback)(T* x)) {
template<typename T, class P>
-bool List<T, P>::Contains(T& elm) {
+bool List<T, P>::Contains(const T& elm) {
for (int i = 0; i < length_; i++) {
if (data_[i] == elm)
return true;
« no previous file with comments | « regexp2000/src/list.h ('k') | regexp2000/src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698