use emplace
Allows removing the constructor name as emplace forwards the arguments directly. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -79,7 +79,7 @@ void sort_projects (
|
||||
|
||||
// if parent does not exist yet: insert into sorted view
|
||||
if (parent_pos == sorted.end ())
|
||||
sorted.push_back (std::make_pair (parent, 1));
|
||||
sorted.emplace_back (parent, 1);
|
||||
}
|
||||
|
||||
// insert new element below latest parent
|
||||
|
||||
Reference in New Issue
Block a user