Use aggregate initialization for the base class in CollectionChangeBuilder

This commit is contained in:
Thomas Goyne 2016-04-19 15:13:28 -07:00
parent c0350b9001
commit 23c16f8e67
1 changed files with 1 additions and 5 deletions

View File

@ -256,12 +256,8 @@ CollectionChangeBuilder::CollectionChangeBuilder(IndexSet deletions,
IndexSet insertions, IndexSet insertions,
IndexSet modifications, IndexSet modifications,
std::vector<Move> moves) std::vector<Move> moves)
: CollectionChangeSet({std::move(deletions), std::move(insertions), std::move(modifications), std::move(moves)})
{ {
this->deletions = std::move(deletions);
this->insertions = std::move(insertions);
this->modifications = std::move(modifications);
this->moves = std::move(moves);
for (auto&& move : this->moves) { for (auto&& move : this->moves) {
this->deletions.add(move.from); this->deletions.add(move.from);
this->insertions.add(move.to); this->insertions.add(move.to);