From af444f73687c2a774bfdacb84ba54b04fd485ecd Mon Sep 17 00:00:00 2001
From: Tom Perkins <thomas.perkins@stfc.ac.uk>
Date: Wed, 24 Feb 2016 10:21:14 +0000
Subject: [PATCH] Update documentation on how to declare a Property

re #15289
---
 docs/source/concepts/Properties.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/source/concepts/Properties.rst b/docs/source/concepts/Properties.rst
index 943549bdc84..ecfe83972c8 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:
 
-- 
GitLab