Skip to content
Snippets Groups Projects
Commit c85d950e authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated clone function for passive/indexed particle

parent 51ffd56c
No related branches found
No related tags found
No related merge requests found
......@@ -108,9 +108,12 @@ public:
{}
//- Construct and return a clone
autoPtr<indexedParticle> clone() const
virtual autoPtr<Particle<indexedParticle> > clone() const
{
return autoPtr<indexedParticle>(new indexedParticle(*this));
return autoPtr<Particle<indexedParticle> >
(
new indexedParticle(*this)
);
}
......
......@@ -99,9 +99,12 @@ public:
{}
//- Construct and return a clone
autoPtr<passiveParticle> clone() const
virtual autoPtr<Particle<passiveParticle> > clone() const
{
return autoPtr<passiveParticle>(new passiveParticle(*this));
return autoPtr<Particle<passiveParticle> >
(
new passiveParticle(*this)
);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment