mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
C++ wrapper: fix carsh on Core creation
This commit is contained in:
parent
3f2cbf6e87
commit
e71c6a8c10
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ void {{{className}}}::removeListener(const std::shared_ptr<{{{listenerClassName}
|
|||
{{#isfactory}}
|
||||
std::shared_ptr<Core> Factory::createCore(const std::shared_ptr<CoreListener> & listener, const std::string & configPath, const std::string & factoryConfigPath) const {
|
||||
::LinphoneCoreCbs *cbs = NULL;
|
||||
std::list<std::shared_ptr<Listener> > listeners;
|
||||
if (listener != nullptr) {
|
||||
std::list<std::shared_ptr<Listener> > listeners;
|
||||
listeners.push_back(std::static_pointer_cast<Listener,CoreListener>(listener));
|
||||
cbs = Core::createCallbacks(&listeners);
|
||||
}
|
||||
|
|
@ -95,8 +95,8 @@ std::shared_ptr<Core> Factory::createCore(const std::shared_ptr<CoreListener> &
|
|||
|
||||
std::shared_ptr<Core> Factory::createCoreWithConfig(const std::shared_ptr<CoreListener> & listener, const std::shared_ptr<Config> & config) const {
|
||||
::LinphoneCoreCbs *cbs = NULL;
|
||||
std::list<std::shared_ptr<Listener> > listeners;
|
||||
if (listener != nullptr) {
|
||||
std::list<std::shared_ptr<Listener> > listeners;
|
||||
listeners.push_back(std::static_pointer_cast<Listener,CoreListener>(listener));
|
||||
cbs = Core::createCallbacks(&listeners);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue