fix(Core): avoid stringstream usage (bazooka)

This commit is contained in:
Ronan Abhamon 2017-10-24 17:08:39 +02:00
parent 935e7b392e
commit d3486aa40a

View file

@ -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);
}
// -----------------------------------------------------------------------------