Use {} for constructor call

This commit is contained in:
Joakim Hove 2021-10-19 13:26:26 +02:00
parent 648abeef1f
commit a22458a592

View File

@ -382,7 +382,7 @@ void FileDeck::rst_solution(const std::string& rst_base, int report_step) {
{
Opm::UnitSystem units;
std::vector<DeckValue> values{ DeckValue{rst_base}, DeckValue{report_step} };
DeckKeyword restart(ParserKeywords::RESTART(), std::vector<std::vector<DeckValue>>{ values }, units, units);
DeckKeyword restart(ParserKeywords::RESTART{}, std::vector<std::vector<DeckValue>>{ values }, units, units);
auto solution = this->find("SOLUTION").value();
this->insert(++solution, restart);