Commit 48543c9b authored by Samuel Jackson's avatar Samuel Jackson
Browse files

Refs #18920 Use Kernel::make_unique

For older compilers.
parent 57db9113
......@@ -8,6 +8,7 @@
#include "MantidKernel/UnitFactory.h"
#include "MantidKernel/Unit.h"
#include "MantidKernel/V3D.h"
#include "MantidKernel/make_unique.h"
#include "MantidKernel/PhysicalConstants.h"
#include "MantidGeometry/Instrument/ReferenceFrame.h"
#include <gmock/gmock.h>
......@@ -381,7 +382,7 @@ public:
ComponentCreationHelper::createTestInstrumentRectangular(5, 100);
auto extendedSpaceObj =
ComponentCreationHelper::createSphere(10., V3D(0, 0, 0));
auto extendedSpace = std::make_unique<ObjComponent>(
auto extendedSpace = Mantid::Kernel::make_unique<ObjComponent>(
"extended-detector-space", extendedSpaceObj, sphereInst.get());
extendedSpace->setPos(V3D(0.0, 0.0, 0.0));
sphereInst->add(extendedSpace.release());
......@@ -458,7 +459,7 @@ public:
ComponentCreationHelper::createTestInstrumentRectangular(5, 100);
auto extendedSpaceObj =
ComponentCreationHelper::createSphere(10., V3D(0, 0, 0));
auto extendedSpace = std::make_unique<ObjComponent>(
auto extendedSpace = Mantid::Kernel::make_unique<ObjComponent>(
"extended-detector-space", extendedSpaceObj, sphereInst.get());
extendedSpace->setPos(V3D(0.0, 0.0, 0.0));
sphereInst->add(extendedSpace.release());
......
Markdown is supported
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