refactor: [qt] Use SpanReader to avoid two vector copies

This commit is contained in:
MarcoFalke committed 2026-02-02 18:41:38 +01:00
1 parent fabd4d2e2e
commit fa06e26764
1 file changed
+1 -2
+1 -2
View File
@@ -189,8 +189,7 @@ void RecentRequestsTableModel::addNewRequest(const SendCoinsRecipient &recipient
// called from ctor when loading from wallet // called from ctor when loading from wallet
void RecentRequestsTableModel::addNewRequest(const std::string &recipient) void RecentRequestsTableModel::addNewRequest(const std::string &recipient)
{ {
std::vector<uint8_t> data(recipient.begin(), recipient.end()); SpanReader ss{MakeByteSpan(recipient)};
DataStream ss{data};
RecentRequestEntry entry; RecentRequestEntry entry;
ss >> entry; ss >> entry;