Skip to content

Commit c2e375d

Browse files
committed
Merge pull request #279 from johnhaddon/copyOptimisation
Removed unnecessary overhead from Object::copy().
2 parents 16debfd + 0554ae3 commit c2e375d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IECore/Object.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ size_t Object::MemoryAccumulator::total() const
312312

313313
ObjectPtr Object::copy() const
314314
{
315-
boost::shared_ptr<CopyContext> c( new CopyContext );
316-
ObjectPtr result = c->copy( this );
315+
CopyContext c;
316+
ObjectPtr result = c.copy( this );
317317
return result;
318318
}
319319

0 commit comments

Comments
 (0)