Skip to content

Commit

Permalink
refs #4150. Use reset instead of swap
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Nov 25, 2011
1 parent d67378d commit ffb40c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/Mantid/Framework/API/src/MatrixWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ namespace Mantid
{
/*m_nearestNeighbours should now be NULL. This will trigger rebuilding on subsequent first call to getNeighbours
,which peforms a lazy evaluation on the nearest neighbours map */
INearestNeighbours* nullNeighbours = NULL;
m_nearestNeighbours.swap(boost::shared_ptr<INearestNeighbours>(nullNeighbours));
m_nearestNeighbours.reset();
}

//---------------------------------------------------------------------------------------
Expand Down

0 comments on commit ffb40c8

Please sign in to comment.