Hadrons: type fix in module creation

This commit is contained in:
portelli committed 2016-12-02 11:04:34 +09:00
1 parent b5555d85a7
commit 8190523e4c
1 file changed
+1 -1
+1 -1
View File
@@ -245,7 +245,7 @@ template <typename M>
void Environment::createModule(const std::string name,
const typename M::Par &par)
{
ModPt pt(new M(name));
std::unique_ptr<M> pt(new M(name));
pt->setPar(par);
pushModule(pt);