Commit 8c98297a authored by Ronan's avatar Ronan
Browse files

fix(ClonableObject): use correct assert on setRef

parent d0048a55
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment