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
9424c365
Commit
9424c365
authored
Feb 20, 2017
by
Ghislain MARY
Browse files
Fix string conversion issue in C++ wrapper.
parent
615f9d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/cpp/class_impl.mustache
wrappers/cpp/class_impl.mustache
+1
-1
No files found.
wrappers/cpp/class_impl.mustache
View file @
9424c365
...
...
@@ -74,7 +74,7 @@ void {{{className}}}::removeListener(std::shared_ptr<{{{listenerClassName}}}> &l
std::shared_ptr
<Core>
Factory::createCore(const std::shared_ptr
<CoreListener>
&
cbs, const std::string
&
configPath, const std::string
&
factoryConfigPath) const {
::LinphoneFactory *factory = linphone_factory_get();
::LinphoneCoreCbs *c_cbs = cbs != nullptr ? Core::createCallbacks(cbs) : NULL;
::LinphoneCore *core_ptr = linphone_factory_create_core(factory, c_cbs, c
onfigPath.c_str(),
factoryConfigPath
.c_str(
));
::LinphoneCore *core_ptr = linphone_factory_create_core(factory, c_cbs, c
ppStringToC(configPath), cppStringToC(
factoryConfigPath));
std::shared_ptr
<Core>
core = cPtrToSharedPtr
<Core>
((belle_sip_object_t *)core_ptr, false);
if (core != nullptr
&&
cbs != nullptr) {
std::static_pointer_cast
<MultiListenableObject
,
Core
>
(core)->addListener(cbs);
...
...
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