fix(ClonableObject): use correct assert on setRef

This commit is contained in:
Ronan Abhamon 2017-08-22 17:17:56 +02:00
parent d0048a553d
commit 8c98297aa4

View file

@ -63,9 +63,8 @@ ClonableObject::~ClonableObject () {
}
void ClonableObject::setRef (const ClonableObjectPrivate &p) {
// Q-pointer must exist.
L_ASSERT(mPrivate);
L_ASSERT(mPrivate->mPublic);
// Q-pointer must exist if private data is defined.
L_ASSERT(!mPrivate || mPrivate->mPublic);
// Nothing, same reference.
if (&p == mPrivate)