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.
// 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