Updated a method signature
This commit is contained in:
parent
f1e01fa781
commit
2cae73c51a
@ -627,7 +627,7 @@ namespace sql::mysql {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AcquiredConnection::AcquiredConnection(MySQLManager* owner, const std::shared_ptr<sql::mysql::Connection> &connection) : owner(owner), connection(connection) { }
|
AcquiredConnection::AcquiredConnection(MySQLManager* owner, std::shared_ptr<sql::mysql::Connection> connection) : owner(owner), connection(std::move(connection)) { }
|
||||||
AcquiredConnection::~AcquiredConnection() {
|
AcquiredConnection::~AcquiredConnection() {
|
||||||
{
|
{
|
||||||
lock_guard lock{this->connection->used_lock};
|
lock_guard lock{this->connection->used_lock};
|
||||||
|
@ -35,7 +35,7 @@ namespace sql {
|
|||||||
MySQLManager* owner;
|
MySQLManager* owner;
|
||||||
std::shared_ptr<Connection> connection;
|
std::shared_ptr<Connection> connection;
|
||||||
|
|
||||||
AcquiredConnection(MySQLManager* owner, const std::shared_ptr<Connection>&);
|
AcquiredConnection(MySQLManager* owner, std::shared_ptr<Connection> );
|
||||||
~AcquiredConnection();
|
~AcquiredConnection();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user