EclipseSolution: make sure that attached keywords are not accidentally deleted

This commit is contained in:
Andreas Lauser 2014-05-30 12:39:20 +02:00
parent d3d3e05d3a
commit d852cc0d03

View File

@ -255,7 +255,8 @@ public:
const std::string &name = bufIt->first; const std::string &name = bufIt->first;
const ScalarBuffer &buffer = *bufIt->second; const ScalarBuffer &buffer = *bufIt->second;
ErtKeyword<float> bufKeyword(name, buffer); std::shared_ptr<const ErtKeyword<float>>
bufKeyword(new ErtKeyword<float>(name, buffer));
solution.add(bufKeyword); solution.add(bufKeyword);
} }