mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
tidy: modernize-use-emplace
This commit is contained in:
parent
4a5aae9330
commit
fa05a726c2
47 changed files with 167 additions and 162 deletions
|
|
@ -1581,10 +1581,10 @@ static RPCHelpMan createpsbt()
|
|||
PartiallySignedTransaction psbtx;
|
||||
psbtx.tx = rawTx;
|
||||
for (unsigned int i = 0; i < rawTx.vin.size(); ++i) {
|
||||
psbtx.inputs.push_back(PSBTInput());
|
||||
psbtx.inputs.emplace_back();
|
||||
}
|
||||
for (unsigned int i = 0; i < rawTx.vout.size(); ++i) {
|
||||
psbtx.outputs.push_back(PSBTOutput());
|
||||
psbtx.outputs.emplace_back();
|
||||
}
|
||||
|
||||
// Serialize the PSBT
|
||||
|
|
@ -1648,10 +1648,10 @@ static RPCHelpMan converttopsbt()
|
|||
PartiallySignedTransaction psbtx;
|
||||
psbtx.tx = tx;
|
||||
for (unsigned int i = 0; i < tx.vin.size(); ++i) {
|
||||
psbtx.inputs.push_back(PSBTInput());
|
||||
psbtx.inputs.emplace_back();
|
||||
}
|
||||
for (unsigned int i = 0; i < tx.vout.size(); ++i) {
|
||||
psbtx.outputs.push_back(PSBTOutput());
|
||||
psbtx.outputs.emplace_back();
|
||||
}
|
||||
|
||||
// Serialize the PSBT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue