long lId = GetSelection();
TreeNode *pNode = (TreeNode *)GetItemData(lId);
- wxCHECK( pNode != NULL );
+ wxCHECK_RET( pNode != NULL, "tree item without data?" );
if ( pNode->IsRoot() ) {
wxLogError("Can't create a subkey under the root key.");
TreeNode *pCurrent = (TreeNode *)GetItemData(lCurrent),
*pParent = (TreeNode *)GetItemData(lParent);
- wxCHECK ( pCurrent && pParent );
+ wxCHECK_RET( pCurrent && pParent, "either node or parent without data?" );
if ( pParent->IsRoot() ) {
wxLogError("Can't delete standard key.");
long lCurrent = GetSelection();
TreeNode *pCurrent = (TreeNode *)GetItemData(lCurrent);
- wxCHECK( pCurrent != NULL );
+ wxCHECK_RET( pCurrent != NULL, "node without data?" );
wxASSERT( pCurrent->IsKey() ); // check must have been done before
long lCurrent = GetSelection();
TreeNode *pCurrent = (TreeNode *)GetItemData(lCurrent);
- wxCHECK( pCurrent != NULL );
+ wxCHECK_RET( pCurrent != NULL, "node without data?" );
wxASSERT( pCurrent->IsKey() ); // check must have been done before
long lCurrent = GetSelection();
TreeNode *pCurrent = (TreeNode *)GetItemData(lCurrent);
- wxCHECK( pCurrent != NULL );
+ wxCHECK_RET( pCurrent != NULL, "node without data?" );
wxASSERT( pCurrent->IsKey() ); // check must have been done before
long lCurrent = GetSelection();
TreeNode *pCurrent = (TreeNode *)GetItemData(lCurrent);
- wxCHECK_RET( pCurrent != NULL, false );
+ wxCHECK( pCurrent != NULL, false );
return pCurrent->IsKey();
}
\ No newline at end of file