mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
tidy: modernize-use-emplace
This commit is contained in:
parent
4a5aae9330
commit
fa05a726c2
47 changed files with 167 additions and 162 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue