Kaydet (Commit) 9d936de8 authored tarafından Noel Grandin's avatar Noel Grandin

clang-tidy readability-delete-null-pointer

Change-Id: Ib47fc58f1cdfdd54adff07687c56198aa6f2091e
Reviewed-on: https://gerrit.libreoffice.org/62029
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4ba5b003
......@@ -822,8 +822,7 @@ void OStatement_Base::setFetchSize(sal_Int32 _par0)
{
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_ROW_ARRAY_SIZE, _par0);
if (m_pRowStatusArray)
delete[] m_pRowStatusArray;
delete[] m_pRowStatusArray;
m_pRowStatusArray = new SQLUSMALLINT[_par0];
setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, m_pRowStatusArray);
}
......
......@@ -875,8 +875,7 @@ bool Sane::Start( BitmapTransporter& rBitmap )
p_cancel( maHandle );
CheckConsistency( "sane_cancel" );
}
if( pBuffer )
delete [] pBuffer;
delete [] pBuffer;
ReloadOptions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment