mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
[clang-tidy] use emplace_back (#880)
Found with modernize-use-emplace Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -92,7 +92,7 @@ void NodeBuilder::Push(detail::node& node) {
|
||||
|
||||
m_stack.push_back(&node);
|
||||
if (needsKey)
|
||||
m_keys.push_back(PushedKey(&node, false));
|
||||
m_keys.emplace_back(&node, false);
|
||||
}
|
||||
|
||||
void NodeBuilder::Pop() {
|
||||
|
Reference in New Issue
Block a user