Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
8c98297a
Commit
8c98297a
authored
Aug 22, 2017
by
Ronan
Browse files
fix(ClonableObject): use correct assert on setRef
parent
d0048a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/object/clonable-object.cpp
src/object/clonable-object.cpp
+2
-3
No files found.
src/object/clonable-object.cpp
View file @
8c98297a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment