for better backwards compatibility add retain function which does nothing to property manager

This commit is contained in:
Max Lyon
2019-11-06 14:04:29 +01:00
parent 35c31dd422
commit 4160fc42d8

View File

@@ -299,6 +299,15 @@ class PropertyManager {
const MeshT& getMesh() const { return dynamic_cast<MeshT&>(mesh_); } const MeshT& getMesh() const { return dynamic_cast<MeshT&>(mesh_); }
/**
* @deprecated This method no longer has any effect. Instead, named properties are always retained, while unnamed ones are not
*
* Tells the PropertyManager whether lifetime should be managed or not.
*/
OM_DEPRECATED("retain no longer has any effect. Instead, named properties are always retained, while unnamed ones are not.")
void retain(bool = true) {}
/** /**
* Move constructor. Transfers ownership (delete responsibility). * Move constructor. Transfers ownership (delete responsibility).
*/ */