mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
tidy: modernize-use-emplace
This commit is contained in:
@@ -1080,9 +1080,9 @@ public:
|
||||
bool reject{false};
|
||||
auto msg = m_transport.GetReceivedMessage({}, reject);
|
||||
if (reject) {
|
||||
ret.push_back(std::nullopt);
|
||||
ret.emplace_back(std::nullopt);
|
||||
} else {
|
||||
ret.push_back(std::move(msg));
|
||||
ret.emplace_back(std::move(msg));
|
||||
}
|
||||
progress = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user