From d3486aa40a670d7459ba513ba2020e2d63f4691d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 24 Oct 2017 17:08:39 +0200 Subject: [PATCH] fix(Core): avoid stringstream usage (bazooka) --- src/core/core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 820f7ed05..16b8eb60e 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -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); } // -----------------------------------------------------------------------------