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.cpp b/Method.cpp
index 42b4d5c..797e503 100644
--- a/Method.cpp
+++ b/Method.cpp
@@ -26,11 +26,12 @@
 #include <hidl-util/FQName.h>
 #include <hidl-util/Formatter.h>
 #include <algorithm>
+#include <string>
 #include <vector>
 
 namespace android {
 
-Method::Method(const char* name, std::vector<NamedReference<Type>*>* args,
+Method::Method(const std::string& name, std::vector<NamedReference<Type>*>* args,
                std::vector<NamedReference<Type>*>* results, bool oneway,
                std::vector<Annotation*>* annotations, const Location& location)
     : mName(name),