mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-20 09:59:53 -06:00
removed useless local variable
This is possible after the std::enable_shared_from_this<MySqlDriver> was added.
This commit is contained in:
@@ -438,10 +438,7 @@ const TSqlDriver *DatabaseConnection::driver()
|
||||
#ifdef TINYORM_USING_TINYDRIVERS
|
||||
std::weak_ptr<const TSqlDriver> DatabaseConnection::driverWeak()
|
||||
{
|
||||
// To select the driverWeak() const overload
|
||||
const auto connection = getQtConnection();
|
||||
|
||||
return connection.driverWeak();
|
||||
return getQtConnection().driverWeak();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user