commit | 736ef249c8a47331515ac19a625bf57e49787895 | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Thu Jun 27 21:34:21 2024 -0700 |
committer | Ryan Prichard <rprichard@google.com> | Fri Jun 28 00:52:39 2024 -0700 |
tree | 5b52676ae17d9590b52df437858611dea6868104 | |
parent | 58d9eab52455a344dc44a49d7f24452c0aa864a5 [diff] [blame] |
aapt2: avoid vector<const T> A container of const T uses std::allocator<const T>, which was an undocumented libc++ extension that has been removed. See https://github.com/llvm/llvm-project/pull/96319. Bug: 349681543 Test: m libaapt2 Change-Id: Ic712f8c844b05687948162e5d080af3726b322f6
diff --git a/tools/aapt2/util/Files.cpp b/tools/aapt2/util/Files.cpp index 02e4beae..8ae55b8 100644 --- a/tools/aapt2/util/Files.cpp +++ b/tools/aapt2/util/Files.cpp
@@ -189,7 +189,7 @@ base->append(part.data(), part.size()); } -std::string BuildPath(std::vector<const StringPiece>&& args) { +std::string BuildPath(const std::vector<StringPiece>& args) { if (args.empty()) { return ""; }