diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 11:34:11 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 11:34:11 +0200 |
| commit | 994f91c5c5b1a3ab40bc5545070dab96b6ff0098 (patch) | |
| tree | 4ee7f0ee0fec8c1841bf4d5f30093cb85568ec7a /src | |
| parent | fix .clang-tidy (diff) | |
| download | winapi-debug-994f91c5c5b1a3ab40bc5545070dab96b6ff0098.tar.gz winapi-debug-994f91c5c5b1a3ab40bc5545070dab96b6ff0098.zip | |
fix weird errors
For some reason, I can no longer initialize a CallStack instance from an
initializer list. On CI, it works fine; maybe my compiler is newer and
somehow defaults to a newer standard or something? Idk
Diffstat (limited to '')
| -rw-r--r-- | src/call_stack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/call_stack.cpp b/src/call_stack.cpp index 4a13b3a..e69c10d 100644 --- a/src/call_stack.cpp +++ b/src/call_stack.cpp @@ -89,11 +89,11 @@ CallStack CallStack::capture() { std::transform(frames_impl.cbegin(), frames_impl.cend(), frames.begin(), [](void* addr) { return reinterpret_cast<Address>(addr); }); - return {frames, length}; + return {std::move(frames), length}; } bool CallStack::for_each_address(const AddressCallback& callback) const { - for (std::size_t i = 0; i < length; ++i) { + for (std::size_t i = 0; i < _length; ++i) { if (!callback(frames[i])) { return false; } |
