Skip to content

Commit

Permalink
making code c++11 compliant #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Feb 2, 2024
1 parent c9b8750 commit 7bfbde4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/emissionsDrivingCycle_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ main(int argc, char** argv) {
if (oc.isDefault("emission-class")) {
emissionClass = vTypeIt->second->emissionClass;
}
energyParams = std::make_unique<EnergyParams>(vTypeIt->second);
energyParams = std::unique_ptr<EnergyParams>(new EnergyParams(vTypeIt->second));
} else {
energyParams = std::make_unique<EnergyParams>(emissionClass);
energyParams = std::unique_ptr<EnergyParams>(new EnergyParams(emissionClass));
}

const bool computeA = oc.getBool("compute-a") || oc.getBool("compute-a.forward");
Expand Down

0 comments on commit 7bfbde4

Please sign in to comment.