Skip to content

Commit

Permalink
Time of Day: used emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 13, 2021
1 parent 5ef2799 commit 7703e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time_of_day.cpp
Expand Up @@ -72,6 +72,6 @@ void time_of_day::write(config& cfg) const
void time_of_day::parse_times(const config& cfg, std::vector<time_of_day>& times)
{
for(const config& t : cfg.child_range("time")) {
times.push_back(time_of_day(t));
times.emplace_back(t);
}
}

0 comments on commit 7703e92

Please sign in to comment.