Commit 884ddffb authored by Ronan's avatar Ronan

fix(General): replace make_unique by makeUnique (avoid mistakes)

parent 593c48fa
......@@ -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();
......
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