Commit 174f3718 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SqliteConnection: unique_ptr is declared noexcept

So no need trying to be smart WRT exception handling
parent e2589947
......@@ -63,17 +63,7 @@ void SqliteConnection::release()
std::unique_ptr<sqlite::Transaction> SqliteConnection::newTransaction()
{
sqlite::Transaction* ptr = nullptr;
try
{
ptr = new sqlite::Transaction( this );
return std::unique_ptr<sqlite::Transaction>{ ptr };
}
catch(...)
{
delete ptr;
return nullptr;
}
return std::unique_ptr<sqlite::Transaction>{ new sqlite::Transaction( this ) };
}
SqliteConnection::RequestContext SqliteConnection::acquireContext()
......
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