From f8632ce3a0d8c221750f56a1226799e070d3a8ec Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Tue, 11 Sep 2012 18:16:04 +0000 Subject: [PATCH] OpenMesh/Core/Utils/PropertyManager: Added property to retain() method. git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@670 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Utils/PropertyManager.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/Utils/PropertyManager.hh b/src/OpenMesh/Core/Utils/PropertyManager.hh index 21dba558..f7aa33a0 100644 --- a/src/OpenMesh/Core/Utils/PropertyManager.hh +++ b/src/OpenMesh/Core/Utils/PropertyManager.hh @@ -151,8 +151,8 @@ class PropertyManager { * If this method is called, the encapsulated property will not be deleted * upon destruction of the PropertyManager instance. */ - inline void retain() { - retain_ = true; + inline void retain(bool doRetain = true) { + retain_ = doRetain; } /**