Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä 2020-05-13 13:53:33 +03:00
commit 6bfefdf124
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -276,17 +276,30 @@ public:
}
Connection(Connection&& rhs)
: m_host(rhs.m_host)
, m_port(rhs.m_port)
, m_user(rhs.m_user)
, m_pw(rhs.m_pw)
, m_db(rhs.m_db)
, m_ssl(rhs.m_ssl)
, m_conn(rhs.m_conn)
: m_host(std::move(rhs.m_host))
, m_port(std::move(rhs.m_port))
, m_user(std::move(rhs.m_user))
, m_pw(std::move(rhs.m_pw))
, m_db(std::move(rhs.m_db))
, m_ssl(std::move(rhs.m_ssl))
, m_conn(std::move(rhs.m_conn))
{
rhs.m_conn = nullptr;
}
Connection& operator=(Connection&& rhs)
{
m_host = std::move(rhs.m_host);
m_port = std::move(rhs.m_port);
m_user = std::move(rhs.m_user);
m_pw = std::move(rhs.m_pw);
m_db = std::move(rhs.m_db);
m_ssl = std::move(rhs.m_ssl);
m_conn = std::move(rhs.m_conn);
rhs.m_conn = nullptr;
return *this;
}
virtual ~Connection()
{
mysql_close(m_conn);