From 9424c36593cc535a3dc195d48c4dfe47ea77d965 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 20 Feb 2017 11:30:25 +0100 Subject: [PATCH] Fix string conversion issue in C++ wrapper. --- wrappers/cpp/class_impl.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/cpp/class_impl.mustache b/wrappers/cpp/class_impl.mustache index 19889a091..006bfd376 100644 --- a/wrappers/cpp/class_impl.mustache +++ b/wrappers/cpp/class_impl.mustache @@ -74,7 +74,7 @@ void {{{className}}}::removeListener(std::shared_ptr<{{{listenerClassName}}}> &l std::shared_ptr Factory::createCore(const std::shared_ptr & 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, configPath.c_str(), factoryConfigPath.c_str()); + ::LinphoneCore *core_ptr = linphone_factory_create_core(factory, c_cbs, cppStringToC(configPath), cppStringToC(factoryConfigPath)); std::shared_ptr core = cPtrToSharedPtr((belle_sip_object_t *)core_ptr, false); if (core != nullptr && cbs != nullptr) { std::static_pointer_cast(core)->addListener(cbs);