Commit e71c6a8c authored by François Grisez's avatar François Grisez
Browse files

C++ wrapper: fix carsh on Core creation

parent 3f2cbf6e
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment