Updated a method signature

This commit is contained in:
WolverinDEV 2019-11-06 12:01:33 +01:00
parent f1e01fa781
commit 2cae73c51a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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();
}; };