summaryrefslogtreecommitdiff
path: root/tools/aapt2/Source.h
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/Source.h
parent12375e9e0d14868cf63c0d6584c7a7d9440c30c4 (diff)
parentd5083f6f6b9bc76bbe64052bcec639eee752a321 (diff)
Merge "Move StringPiece to libandroidfw"
Diffstat (limited to 'tools/aapt2/Source.h')
-rw-r--r--tools/aapt2/Source.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/aapt2/Source.h b/tools/aapt2/Source.h
index 459a8e603b6b..d7f2a668477c 100644
--- a/tools/aapt2/Source.h
+++ b/tools/aapt2/Source.h
@@ -20,8 +20,9 @@
#include <ostream>
#include <string>
+#include "androidfw/StringPiece.h"
+
#include "util/Maybe.h"
-#include "util/StringPiece.h"
namespace aapt {
@@ -35,12 +36,11 @@ struct Source {
Source() = default;
- inline Source(const StringPiece& path)
- : path(path.ToString()) { // NOLINT(implicit)
+ inline Source(const android::StringPiece& path) : path(path.to_string()) { // NOLINT(implicit)
}
- inline Source(const StringPiece& path, size_t line)
- : path(path.ToString()), line(line) {}
+ inline Source(const android::StringPiece& path, size_t line)
+ : path(path.to_string()), line(line) {}
inline Source WithLine(size_t line) const { return Source(path, line); }
};