Kaydet (Commit) c9299301 authored tarafından Caolán McNamara's avatar Caolán McNamara

DBG_ASSERT -> assert where we go on to deref the testee

Change-Id: Id38a9e2e0ca0b1c52cb3306adf77eb43d710c9c6
üst 82a72bb8
...@@ -201,9 +201,9 @@ SbxVariable* TreeListBox::FindVariable( SvTreeListEntry* pEntry ) ...@@ -201,9 +201,9 @@ SbxVariable* TreeListBox::FindVariable( SvTreeListEntry* pEntry )
for ( size_t n = 0; n < aEntries.size(); n++ ) for ( size_t n = 0; n < aEntries.size(); n++ )
{ {
SvTreeListEntry* pLE = aEntries[n]; SvTreeListEntry* pLE = aEntries[n];
DBG_ASSERT( pLE, "Can not find entry in array" ); assert(pLE && "Can not find entry in array");
Entry* pBE = static_cast<Entry*>(pLE->GetUserData()); Entry* pBE = static_cast<Entry*>(pLE->GetUserData());
DBG_ASSERT( pBE, "The data in the entry not found!" ); assert(pBE && "The data in the entry not found!");
OUString aName( GetEntryText( pLE ) ); OUString aName( GetEntryText( pLE ) );
switch ( pBE->GetType() ) switch ( pBE->GetType() )
......
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