summaryrefslogtreecommitdiff
path: root/tools/aapt2/link/ReferenceLinker.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-01-19 23:40:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-01-19 23:40:06 +0000
commit1f9f11007db09bbbc156965e77b10de82a32a544 (patch)
treee715a9edb691da38726c2c5487625bd35b05ec94 /tools/aapt2/link/ReferenceLinker.cpp
parent12375e9e0d14868cf63c0d6584c7a7d9440c30c4 (diff)
parentd5083f6f6b9bc76bbe64052bcec639eee752a321 (diff)
Merge "Move StringPiece to libandroidfw"
Diffstat (limited to 'tools/aapt2/link/ReferenceLinker.cpp')
-rw-r--r--tools/aapt2/link/ReferenceLinker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/aapt2/link/ReferenceLinker.cpp b/tools/aapt2/link/ReferenceLinker.cpp
index be787b2727ad..ea68b61f89c4 100644
--- a/tools/aapt2/link/ReferenceLinker.cpp
+++ b/tools/aapt2/link/ReferenceLinker.cpp
@@ -30,6 +30,8 @@
#include "util/Util.h"
#include "xml/XmlUtil.h"
+using android::StringPiece;
+
namespace aapt {
namespace {
@@ -192,8 +194,7 @@ class EmptyDeclStack : public xml::IPackageDeclStack {
const StringPiece& alias,
const StringPiece& local_package) const override {
if (alias.empty()) {
- return xml::ExtractedPackage{local_package.ToString(),
- true /* private */};
+ return xml::ExtractedPackage{local_package.to_string(), true /* private */};
}
return {};
}