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/Interface.cpp b/Interface.cpp
index ff33972..1fa9ed3 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -30,6 +30,7 @@
#include <iostream>
#include <memory>
#include <sstream>
+#include <string>
#include <unordered_map>
#include <android-base/logging.h>
@@ -71,7 +72,7 @@
const std::unique_ptr<ConstantExpression> Interface::FLAG_ONE_WAY =
std::make_unique<LiteralConstantExpression>(ScalarType::KIND_UINT32, 0x01, "oneway");
-Interface::Interface(const char* localName, const FQName& fullName, const Location& location,
+Interface::Interface(const std::string& localName, const FQName& fullName, const Location& location,
Scope* parent, const Reference<Type>& superType, const Hash* fileHash)
: Scope(localName, fullName, location, parent), mSuperType(superType), mFileHash(fileHash) {}