mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
fix(General): replace make_unique by makeUnique (avoid mistakes)
This commit is contained in:
parent
593c48faaf
commit
884ddffb7d
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ constexpr unsigned int makeVersion (unsigned int major, unsigned int minor, unsi
|
|||
|
||||
// Not available in C++11...
|
||||
template<typename T, typename... Args>
|
||||
std::unique_ptr<T> make_unique(Args && ...args) {
|
||||
std::unique_ptr<T> makeUnique(Args && ...args) {
|
||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ DbSession::DbSession (const string &uri) : DbSession() {
|
|||
#ifdef SOCI_ENABLED
|
||||
try {
|
||||
L_D();
|
||||
d->backendSession = make_unique<soci::session>(uri);
|
||||
d->backendSession = makeUnique<soci::session>(uri);
|
||||
d->backend = !uri.find("mysql") ? DbSessionPrivate::Backend::Mysql : DbSessionPrivate::Backend::Sqlite3;
|
||||
} catch (const exception &e) {
|
||||
lWarning() << "Unable to build db session with uri: " << e.what();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue