mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Fix bugprone-unused-return-value
This commit is contained in:
parent
bf8ae71b7d
commit
ed27c49eea
|
@ -41,11 +41,6 @@ CMysqlConnection::CMysqlConnection(
|
|||
|
||||
CMysqlConnection::~CMysqlConnection()
|
||||
{
|
||||
#if defined(CONF_SQL)
|
||||
m_pStmt.release();
|
||||
m_pPreparedStmt.release();
|
||||
m_pConnection.release();
|
||||
#endif
|
||||
}
|
||||
|
||||
void CMysqlConnection::Print(IConsole *pConsole, const char *Mode)
|
||||
|
@ -104,9 +99,9 @@ IDbConnection::Status CMysqlConnection::Connect()
|
|||
|
||||
try
|
||||
{
|
||||
m_pConnection.release();
|
||||
m_pPreparedStmt.release();
|
||||
m_pResults.release();
|
||||
m_pConnection.reset();
|
||||
m_pPreparedStmt.reset();
|
||||
m_pResults.reset();
|
||||
|
||||
sql::ConnectOptionsMap connection_properties;
|
||||
connection_properties["hostName"] = sql::SQLString(m_aIp);
|
||||
|
|
Loading…
Reference in a new issue