Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
48543c9b
Commit
48543c9b
authored
Mar 02, 2017
by
Samuel Jackson
Browse files
Refs #18920 Use Kernel::make_unique
For older compilers.
parent
57db9113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/DataObjects/test/PeakTest.h
View file @
48543c9b
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment