mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 03:02:37 +02:00
Use only Span{} constructor for byte-like types where possible
This removes bloat that is not needed.
This commit is contained in:
@@ -1161,7 +1161,7 @@ bool WalletBatch::EraseRecords(const std::unordered_set<std::string>& types)
|
||||
}
|
||||
|
||||
// Make a copy of key to avoid data being deleted by the following read of the type
|
||||
Span<const unsigned char> key_data = MakeUCharSpan(key);
|
||||
Span key_data{key};
|
||||
|
||||
std::string type;
|
||||
key >> type;
|
||||
|
||||
Reference in New Issue
Block a user