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

This commit is contained in:
MarcoFalke
2021-04-30 20:03:35 +02:00
parent faece47c47
commit fac30eec42
15 changed files with 40 additions and 40 deletions

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,