Skip to content
Snippets Groups Projects
Commit 0063930d authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #5016. Fix gcc scoped_ptr usage.

parent 1f689675
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......@@ -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())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment