diff --git a/docs/source/concepts/Properties.rst b/docs/source/concepts/Properties.rst index 943549bdc84ced0b8ae48128a5b29c8ffee900a6..ecfe83972c83c1483a911969f5d0d7598e9a8cb3 100644 --- a/docs/source/concepts/Properties.rst +++ b/docs/source/concepts/Properties.rst @@ -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: