Skip to content

Commit

Permalink
[clib] Switch reactorsurface to SharedCabinet
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Jun 21, 2023
1 parent d5fcbaa commit b5f68ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clib/ctreactor.cpp
Expand Up @@ -24,7 +24,7 @@ typedef Cabinet<Func1> FuncCabinet;
typedef SharedCabinet<ThermoPhase> ThermoCabinet;
typedef SharedCabinet<Kinetics> KineticsCabinet;
typedef SharedCabinet<Solution> SolutionCabinet;
typedef Cabinet<ReactorSurface> ReactorSurfaceCabinet;
typedef SharedCabinet<ReactorSurface> ReactorSurfaceCabinet;

template<> ReactorCabinet* ReactorCabinet::s_storage = 0;
template<> NetworkCabinet* NetworkCabinet::s_storage = 0;
Expand Down Expand Up @@ -599,7 +599,7 @@ extern "C" {
int reactorsurface_new(int type)
{
try {
return ReactorSurfaceCabinet::add(new ReactorSurface());
return ReactorSurfaceCabinet::add(make_shared<ReactorSurface>());
} catch (...) {
return handleAllExceptions(-1, ERR);
}
Expand Down

0 comments on commit b5f68ff

Please sign in to comment.