tidy: modernize-use-emplace

This commit is contained in:
MarcoFalke
2023-10-04 13:53:40 +02:00
parent 4a5aae9330
commit fa05a726c2
47 changed files with 167 additions and 162 deletions

View File

@@ -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;
}