[12079] Remove some redundant explicit NULL checks for pointers before delete or delete[] calls since this check is done implicitly when deleting

Signed-off-by: stfx <stfx@hotmail.de>
This commit is contained in:
Machiavelli 2012-08-03 14:29:04 +02:00 committed by stfx
parent 4a684fe630
commit 21a3ee9267
28 changed files with 80 additions and 160 deletions

View file

@ -41,11 +41,8 @@ SqlStatement& SqlStatement::operator=(const SqlStatement& index)
m_index = index.m_index;
m_pDB = index.m_pDB;
if (m_pParams)
{
delete m_pParams;
m_pParams = NULL;
}
delete m_pParams;
m_pParams = NULL;
if (index.m_pParams)
m_pParams = new SqlStmtParameters(*(index.m_pParams));