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

Unified Diff: regexp2000/src/jsregexp.h

Issue 11203: * Changed string-representation of regexps to handle unprintable chars. (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
Index: regexp2000/src/jsregexp.h
diff --git a/regexp2000/src/jsregexp.h b/regexp2000/src/jsregexp.h
index 42da4e5a6976c7dac59fd0ac8f1b5914952e2ae7..dbfe58b135040fe936adbbba5331883351f055bf 100644
--- a/regexp2000/src/jsregexp.h
+++ b/regexp2000/src/jsregexp.h
@@ -421,7 +421,7 @@ class TextElement {
public:
enum Type {UNINITIALIZED, ATOM, CHAR_CLASS};
TextElement() : type(UNINITIALIZED) { }
- TextElement(Type t) : type(t) { }
+ explicit TextElement(Type t) : type(t) { }
static TextElement Atom(RegExpAtom* atom);
static TextElement CharClass(RegExpCharacterClass* char_class);
Type type;

Powered by Google App Engine
This is Rietveld 408576698