mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
fix(Core): avoid stringstream usage (bazooka)
This commit is contained in:
parent
935e7b392e
commit
d3486aa40a
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue