Skip to content

Commit

Permalink
Using std::make_shared
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Aug 5, 2023
1 parent 86b2a13 commit c09611b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kinetics/Reaction.cpp
Expand Up @@ -872,10 +872,10 @@ FalloffReaction::FalloffReaction(const Composition& reactants_,
{
warn_deprecated("FalloffReaction",
"To be removed after Cantera 3.0. Replaceable with Reaction.");
// cannot be delegated as std::make_shared does not work for FalloffRate
// cannot be delegated as make_shared does not work for FalloffRate
reactants = reactants_;
products = products_;
m_third_body = std::make_shared<ThirdBody>(tbody_);
m_third_body = make_shared<ThirdBody>(tbody_);
AnyMap node = rate_.parameters();
node.applyUnits();
std::string rate_type = node["type"].asString();
Expand Down

0 comments on commit c09611b

Please sign in to comment.