removed useless local variable

This is possible after the std::enable_shared_from_this<MySqlDriver> was
added.
This commit is contained in:
silverqx
2024-07-28 00:28:01 +02:00
parent 3518d9f316
commit 5651efcac2

View File

@@ -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