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

Unified Diff: src/ast.h

Issue 9368026: Make constructors explicit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 48fb823c41b7dad0cddbc8893603a0a1e2de382c..7f812326fae0fb6acebe987da8783ad7cb88491c 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -542,7 +542,7 @@ class ModuleLiteral: public Module {
protected:
template<class> friend class AstNodeFactory;
- ModuleLiteral(Block* body)
+ explicit ModuleLiteral(Block* body)
: body_(body) {
}
@@ -560,7 +560,7 @@ class ModuleVariable: public Module {
protected:
template<class> friend class AstNodeFactory;
- ModuleVariable(Variable* var)
+ explicit ModuleVariable(Variable* var)
: var_(var) {
}
@@ -599,7 +599,7 @@ class ModuleUrl: public Module {
protected:
template<class> friend class AstNodeFactory;
- ModuleUrl(Handle<String> url) : url_(url) {
+ explicit ModuleUrl(Handle<String> url) : url_(url) {
}
private:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698