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
77397eab
Commit
77397eab
authored
Sep 15, 2017
by
Ghislain MARY
Browse files
Fix bug in Wrapper::setCppPtrFromC where the cppObject was not really assigned.
parent
cfbb6645
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/c-wrapper/c-tools.h
View file @
77397eab
...
...
@@ -120,9 +120,9 @@ public:
T
*
oldPtr
=
reinterpret_cast
<
T
*>
(
static_cast
<
WrappedClonableObject
<
T
>
*>
(
object
)
->
cppPtr
);
if
(
oldPtr
!=
cppPtr
)
{
delete
oldPtr
;
T
*
cppObject
=
static_cast
<
WrappedClonableObject
<
T
>
*>
(
object
)
->
cppPtr
;
cppObject
=
new
T
(
*
cppPtr
);
cppObject
->
setProperty
(
"LinphonePrivate::Wrapper::cBackPtr"
,
object
);
T
*
*
cppObject
=
&
static_cast
<
WrappedClonableObject
<
T
>
*>
(
object
)
->
cppPtr
;
*
cppObject
=
new
T
(
*
cppPtr
);
(
*
cppObject
)
->
setProperty
(
"LinphonePrivate::Wrapper::cBackPtr"
,
object
);
}
}
...
...
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