Skip to content
Snippets Groups Projects
Commit 941af7d7 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Use vector::emplace_back to avoid a false positive warning

parent b756f2ff
No related branches found
No related tags found
No related merge requests found
...@@ -127,9 +127,9 @@ std::vector<boost::optional<Row>> Clipboard::createRowsForSubtree( ...@@ -127,9 +127,9 @@ std::vector<boost::optional<Row>> Clipboard::createRowsForSubtree(
}); });
auto validationResult = validateRow(cells); auto validationResult = validateRow(cells);
if (validationResult.isValid()) if (validationResult.isValid())
result.push_back(validationResult.assertValid()); result.emplace_back(validationResult.assertValid());
else else
result.push_back(boost::none); result.emplace_back(boost::none);
} }
return result; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment