summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-11-27 17:36:43 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2024-11-28 11:38:56 +0100
commit9dc61e9faca5e8b05a1a2a2eed83a5468aeb6202 (patch)
tree8bb14a724981e449ec445980db8d4971e33930ba /src/buildtool/file_system/git_repo.hpp
parent6f8e29918f3a0b29ce04555b3dd5ca1e8cfd3380 (diff)
downloadjustbuild-9dc61e9faca5e8b05a1a2a2eed83a5468aeb6202.tar.gz
Ensure gitstrarray gets created with alive pointers.
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
-rw-r--r--src/buildtool/file_system/git_repo.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp
index 11393ff9..94fae348 100644
--- a/src/buildtool/file_system/git_repo.hpp
+++ b/src/buildtool/file_system/git_repo.hpp
@@ -384,11 +384,7 @@ class GitRepo {
class GitStrArray final {
public:
- void AddEntry(std::string entry) {
- char* const entry_ptr =
- entries_.emplace_back(std::move(entry)).data();
- entry_pointers_.push_back(entry_ptr);
- }
+ void AddEntry(std::string entry);
[[nodiscard]] auto Get() & noexcept -> git_strarray;
private: