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
Branches
Tags
No related merge requests found
...@@ -108,9 +108,12 @@ public: ...@@ -108,9 +108,12 @@ public:
{} {}
//- Construct and return a clone //- 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: ...@@ -99,9 +99,12 @@ public:
{} {}
//- Construct and return a clone //- 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment