Move StringPiece to libandroidfw
libandroidfw needs to make use of StringPiece, so move it to libandroidfw and update all code referencing StringPiece in aapt2. Test: make libandroidfw_tests libaapt2_tests Change-Id: I68d7f0fc7c651b048d9d1f5e7971f10ef5349fa1
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
|
||||
#include "java/ClassDefinition.h"
|
||||
|
||||
#include "util/StringPiece.h"
|
||||
#include "androidfw/StringPiece.h"
|
||||
|
||||
using android::StringPiece;
|
||||
|
||||
namespace aapt {
|
||||
|
||||
@@ -43,7 +45,7 @@ void ClassDefinition::WriteToStream(const StringPiece& prefix, bool final,
|
||||
}
|
||||
*out << "final class " << name_ << " {\n";
|
||||
|
||||
std::string new_prefix = prefix.ToString();
|
||||
std::string new_prefix = prefix.to_string();
|
||||
new_prefix.append(kIndent);
|
||||
|
||||
for (const std::unique_ptr<ClassMember>& member : members_) {
|
||||
|
||||
Reference in New Issue
Block a user