refactor: Replace &foo[0] with foo.data()

This commit is contained in:
MarcoFalke committed 2021-05-04 06:55:31 +02:00
1 parent faece47c47
commit fac30eec42
15 files changed
+40 -40

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << *newTx;
transaction_array.append((const char*)&(ssTx[0]), ssTx.size());
transaction_array.append((const char*)ssTx.data(), ssTx.size());
}
// Add addresses / update labels that we've sent to the address book,