diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2023-02-15 17:47:23 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2023-02-15 18:02:32 +0100 |
commit | d57a7bf8964de96456bd0f9a886c9f2cfa326e60 (patch) | |
tree | 698002076180bb5b628cffed20b794d319710042 /src/buildtool/common/cli.hpp | |
parent | 26241c70ac144eb3eb90b4336ecf6ad5248a367b (diff) | |
download | justbuild-d57a7bf8964de96456bd0f9a886c9f2cfa326e60.tar.gz |
Fix wrong assembly of just args in just-mr
The actual error fixed in this commit was the usage of the std::vector resize
method instead of the reserve method. The resize method increases the size of
the vector by appending new default-allocated elements (empty strings in this
case), whereas the reserve method just increases the underlying capacity of the
vector without appending elements. In addition to this fix, the remaining
just-args assembly code was refactored to drop the lambda-function usage in
favor of a plain sequence of statements.
Diffstat (limited to 'src/buildtool/common/cli.hpp')
0 files changed, 0 insertions, 0 deletions