diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-05 14:47:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-05 14:51:50 +0100 |
commit | 27728cc59fea7b78c0cb9a2ddc3c09a08684c1b8 (patch) | |
tree | 68a3296905dc1b50c91e84c01c4b826bd6163f89 /basctl/source/basicide/bastype3.cxx | |
parent | 11fe4810ad82eaeb50c164b33c4f908c8fc045f1 (diff) |
Called C++ object pointer is null DBG_ASSERT->assert
Change-Id: I3094fc1728135fb9e8b229826cd2e30925e89b11
Diffstat (limited to 'basctl/source/basicide/bastype3.cxx')
-rw-r--r-- | basctl/source/basicide/bastype3.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx index 88178c0b5cf6..94436dac89a4 100644 --- a/basctl/source/basicide/bastype3.cxx +++ b/basctl/source/basicide/bastype3.cxx @@ -131,8 +131,7 @@ void TreeListBox::RequestingChildren( SvTreeListEntry* pEntry ) void TreeListBox::ExpandedHdl() { SvTreeListEntry* pEntry = GetHdlEntry(); - DBG_ASSERT( pEntry, "Was wurde zugeklappt?" ); - + assert(pEntry && "Was wurde zugeklappt?"); if ( !IsExpanded( pEntry ) && pEntry->HasChildrenOnDemand() ) { SvTreeListEntry* pChild = FirstChild( pEntry ); @@ -300,9 +299,9 @@ EntryDescriptor TreeListBox::GetEntryDescriptor( SvTreeListEntry* pEntry ) for ( size_t n = 0; n < aEntries.size(); n++ ) { SvTreeListEntry* pLE = aEntries[n]; - DBG_ASSERT( pLE, "Entrie im Array nicht gefunden" ); + assert(pLE && "Entrie im Array nicht gefunden"); Entry* pBE = static_cast<Entry*>(pLE->GetUserData()); - DBG_ASSERT( pBE, "Keine Daten im Eintrag gefunden!" ); + assert(pBE && "Keine Daten im Eintrag gefunden!"); switch ( pBE->GetType() ) { |