mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix(ClonableObject): use correct assert on setRef
This commit is contained in:
parent
d0048a553d
commit
8c98297aa4
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue