From 5556b4acddafda7103ba9388ac6bbd077253a8d8 Mon Sep 17 00:00:00 2001 From: David Neto Date: Sat, 28 Mar 2020 00:44:50 +0000 Subject: [PATCH] ast::Literal constructor is explicit Fixes a lint issue Change-Id: I98225fe5bf966c6fbf9b3b0c88e3d4dcc6a91cca Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18041 Reviewed-by: dan sinclair --- src/ast/literal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast/literal.h b/src/ast/literal.h index 9f91478a2c..783a0f748a 100644 --- a/src/ast/literal.h +++ b/src/ast/literal.h @@ -61,7 +61,7 @@ class Literal { protected: /// Constructor - Literal(ast::type::Type* type); + explicit Literal(ast::type::Type* type); private: ast::type::Type* type_ = nullptr;