ObjectLock: deduplicate constructors

refs #7123
This commit is contained in:
Alexander A. Klimov 2019-04-17 16:47:41 +02:00
parent 5e3df67ab3
commit f9f998334d
1 changed files with 1 additions and 3 deletions

View File

@ -14,10 +14,8 @@ ObjectLock::~ObjectLock()
}
ObjectLock::ObjectLock(const Object::Ptr& object)
: m_Object(object.get()), m_Locked(false)
: ObjectLock(object.get())
{
if (m_Object)
Lock();
}
ObjectLock::ObjectLock(const Object *object)