Revision: 10666 Author: [email protected] Date: Thu Feb 9 05:54:45 2012 Log: Make constructors explicit.
[email protected] BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9368026 http://code.google.com/p/v8/source/detail?r=10666 Modified: /branches/bleeding_edge/src/ast.h ======================================= --- /branches/bleeding_edge/src/ast.h Thu Feb 9 05:40:41 2012 +++ /branches/bleeding_edge/src/ast.h Thu Feb 9 05:54:45 2012 @@ -542,7 +542,7 @@ protected: template<class> friend class AstNodeFactory; - ModuleLiteral(Block* body) + explicit ModuleLiteral(Block* body) : body_(body) { } @@ -560,7 +560,7 @@ protected: template<class> friend class AstNodeFactory; - ModuleVariable(Variable* var) + explicit ModuleVariable(Variable* var) : var_(var) { } @@ -599,7 +599,7 @@ protected: template<class> friend class AstNodeFactory; - ModuleUrl(Handle<String> url) : url_(url) { + explicit ModuleUrl(Handle<String> url) : url_(url) { } private: -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
