Skip to content
Snippets Groups Projects
Commit af444f73 authored by Tom Perkins's avatar Tom Perkins
Browse files

Update documentation on how to declare a Property

re #15289
parent dc6587a7
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,10 @@ these options.
An ArrayProperty can be declared in a algorithm as follows:
``declareProperty(new ArrayProperty``\ \ ``(...));``
``declareProperty(Mantid::Kernel::make_unique<ArrayProperty>``\ \ ``(...));``
(note the use of ``make_unique`` rather than ``new``, as the algorithm takes
ownership of the property)
or, if creating using an already existing vector:
......
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