fix move operator= function
This commit is contained in:
parent
ea90ef1398
commit
d293180eb1
@ -84,8 +84,7 @@ public:
|
|||||||
|
|
||||||
SqlConnection& operator=(SqlConnection&& other){
|
SqlConnection& operator=(SqlConnection&& other){
|
||||||
if(this != &other){
|
if(this != &other){
|
||||||
auto temp = SqlConnection{};
|
this->Connect(other.ip, other.port, other.username, other.password, other.database_name);
|
||||||
temp.Connect(other.ip, other.port, other.username, other.password, other.database_name);
|
|
||||||
other.Close();
|
other.Close();
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user