diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 16:15:50 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 21:19:50 +0100 |
commit | fada14b948cac147198e3b685b5dd8cb72dc2911 (patch) | |
tree | 4a84ed9e578c3297a59e5cb06c1667551fafc346 /src/support/allocators/zeroafterfree.h | |
parent | fa8bdb048e65cae2d26bea3f991717a856e2fb39 (diff) | |
download | bitcoin-fada14b948cac147198e3b685b5dd8cb72dc2911.tar.xz |
Treat CDataStream bytes as uint8_t
Also, rename CSerializeData to SerializeData
Diffstat (limited to 'src/support/allocators/zeroafterfree.h')
-rw-r--r-- | src/support/allocators/zeroafterfree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/allocators/zeroafterfree.h b/src/support/allocators/zeroafterfree.h index c7ed5ef308..418f0ee656 100644 --- a/src/support/allocators/zeroafterfree.h +++ b/src/support/allocators/zeroafterfree.h @@ -42,7 +42,7 @@ struct zero_after_free_allocator : public std::allocator<T> { } }; -// Byte-vector that clears its contents before deletion. -typedef std::vector<char, zero_after_free_allocator<char> > CSerializeData; +/** Byte-vector that clears its contents before deletion. */ +using SerializeData = std::vector<uint8_t, zero_after_free_allocator<uint8_t>>; #endif // BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H |