Commit d3486aa4 authored by Ronan's avatar Ronan

fix(Core): avoid stringstream usage (bazooka)

parent 935e7b39
......@@ -47,11 +47,11 @@ Core::Core (LinphoneCore *cCore) : Object(*new CorePrivate) {
? MainDb::Mysql
: MainDb::Sqlite3;
d->mainDb.connect(backend, uri);
} else {
stringstream path;
path << getDataPath() << "/linphone.db";
d->mainDb.connect(MainDb::Sqlite3, path.str());
return;
}
static string path = getDataPath() + "/linphone.db";
d->mainDb.connect(MainDb::Sqlite3, path);
}
// -----------------------------------------------------------------------------
......
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