Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / tools / gn / function_template.cc
index 46a2fec..368dc97 100644 (file)
@@ -12,6 +12,8 @@
 namespace functions {
 
 const char kTemplate[] = "template";
+const char kTemplate_HelpShort[] =
+    "template: Define a template rule.";
 const char kTemplate_Help[] =
     "template: Define a template rule.\n"
     "\n"
@@ -165,8 +167,7 @@ Value RunTemplate(Scope* scope,
     return Value();
   }
 
-  scope->AddTemplate(template_name,
-                     scoped_ptr<Template>(new Template(scope, function)));
+  scope->AddTemplate(template_name, new Template(scope, function));
   return Value();
 }