diff options
Diffstat (limited to 'tools/aapt2/ResourceValues.h')
-rw-r--r-- | tools/aapt2/ResourceValues.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aapt2/ResourceValues.h b/tools/aapt2/ResourceValues.h index ea73615e372a..d380f8d0583d 100644 --- a/tools/aapt2/ResourceValues.h +++ b/tools/aapt2/ResourceValues.h @@ -22,6 +22,7 @@ #include <vector> #include "androidfw/ResourceTypes.h" +#include "androidfw/StringPiece.h" #include "Diagnostics.h" #include "Resource.h" @@ -73,7 +74,7 @@ struct Value { */ const std::string& GetComment() const { return comment_; } - void SetComment(const StringPiece& str) { comment_ = str.ToString(); } + void SetComment(const android::StringPiece& str) { comment_ = str.to_string(); } void SetComment(std::string&& str) { comment_ = std::move(str); } |