diff --git a/include/sqlConnection.h b/include/sqlConnection.h index 575da41..bb3798f 100644 --- a/include/sqlConnection.h +++ b/include/sqlConnection.h @@ -84,8 +84,7 @@ public: SqlConnection& operator=(SqlConnection&& other){ if(this != &other){ - auto temp = SqlConnection{}; - temp.Connect(other.ip, other.port, other.username, other.password, other.database_name); + this->Connect(other.ip, other.port, other.username, other.password, other.database_name); other.Close(); } return *this;