Change const char* to std::string

This is just to make the constructors more consistent.

Bug: 137953313
Test: TH
Change-Id: Id297da99cf246cd64095b3e1e2d219300fec99ff
diff --git a/Method.h b/Method.h
index 5c5ac47..3860f91 100644
--- a/Method.h
+++ b/Method.h
@@ -52,7 +52,7 @@
 using MethodImpl = std::map<MethodImplType, std::function<void(Formatter &)>>;
 
 struct Method : DocCommentable {
-    Method(const char* name, std::vector<NamedReference<Type>*>* args,
+    Method(const std::string& name, std::vector<NamedReference<Type>*>* args,
            std::vector<NamedReference<Type>*>* results, bool oneway,
            std::vector<Annotation*>* annotations, const Location& location);