diff options
| author | 2024-07-11 22:28:14 +0000 | |
|---|---|---|
| committer | 2024-07-11 22:28:14 +0000 | |
| commit | 31bbf075762831c8b35e67be7ca4accc7f9fbdcb (patch) | |
| tree | ca9d8f65073b50710917d34d846ff62b41f282f6 | |
| parent | 1b1a8e6d9cc5e27d2121137143b67cd1e16ff4bf (diff) | |
| parent | b54b9b5251377e9a5ce31390c59d56cc82556841 (diff) | |
Merge "aapt2: avoid vector<const T>" into main am: b54b9b5251
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3151337
Change-Id: Ib2d3e982f6ad091716bb3ac071f0c0d6112dabe2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | tools/aapt2/util/Files.cpp | 2 | ||||
| -rw-r--r-- | tools/aapt2/util/Files.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/util/Files.cpp b/tools/aapt2/util/Files.cpp index 02e4beaed949..8ae55b8868c3 100644 --- a/tools/aapt2/util/Files.cpp +++ b/tools/aapt2/util/Files.cpp @@ -189,7 +189,7 @@ void AppendPath(std::string* base, StringPiece part) { 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 ""; } diff --git a/tools/aapt2/util/Files.h b/tools/aapt2/util/Files.h index 42eeaf2d2e2a..c1a42446ec3b 100644 --- a/tools/aapt2/util/Files.h +++ b/tools/aapt2/util/Files.h @@ -60,7 +60,7 @@ FileType GetFileType(const std::string& path); void AppendPath(std::string* base, android::StringPiece part); // Concatenates the list of paths and separates each part with the directory separator. -std::string BuildPath(std::vector<const android::StringPiece>&& args); +std::string BuildPath(const std::vector<android::StringPiece>& args); // Makes all the directories in `path`. The last element in the path is interpreted as a directory. bool mkdirs(const std::string& path); |