Skip to content

Commit

Permalink
refs #5016. Fix gcc scoped_ptr usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed May 29, 2012
1 parent 1f68967 commit 0063930
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ TODO: Enter a full wiki-markup description of your algorithm here. You can then
#include "MantidMDEvents/ReflectometryTransformQxQz.h"
#include "MantidMDEvents/ReflectometryMDTransform.h"

#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>

using namespace Mantid::Kernel;
Expand Down Expand Up @@ -278,10 +277,11 @@ namespace MDEvents
inputEventWs = result;
}

boost::scoped_ptr<ReflectometryMDTransform> transform(NULL);
typedef boost::shared_ptr<ReflectometryMDTransform> ReflectometryMDTransform_sptr;
ReflectometryMDTransform_sptr transform;
if(outputDimensions == qSpaceTransform())
{
transform.swap(boost::scoped_ptr<ReflectometryMDTransform>(new ReflectometryTransformQxQz(qxmin, qxmax, qzmin, qzmax, incidentTheta)));
transform = ReflectometryMDTransform_sptr(new ReflectometryTransformQxQz(qxmin, qxmax, qzmin, qzmax, incidentTheta));
}
else if(outputDimensions == pSpaceTransform())
{
Expand Down

0 comments on commit 0063930

Please sign in to comment.