diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-06 20:30:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-06 21:06:06 +0100 |
commit | eb9b890bc95005c4d97622630786359d1b821cb5 (patch) | |
tree | 0c9db00aa08eb0310f0203eb68dcdb2b9b698ffc /basic/source/runtime/stdobj1.cxx | |
parent | 82a30a456e08a27267c35c3df0c6ecd8b9079611 (diff) |
DBG_ASSERT->assert when followed by dereference
Change-Id: I9390228721df1b713d8cf2e719854b74d6b639c8
Diffstat (limited to 'basic/source/runtime/stdobj1.cxx')
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index 24b04742d10c..061aa646f038 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -250,7 +250,7 @@ SbStdFont::SbStdFont() : // handle name property yourself p = Find( OUString("Name"), SbxCLASS_PROPERTY ); - DBG_ASSERT( p, "No Name Property" ); + assert(p && "No Name Property"); p->SetUserData( ATTR_IMP_NAME ); } @@ -399,7 +399,7 @@ SbStdClipboard::SbStdClipboard() : SbxObject( OUString("Clipboard") ) { SbxVariable* p = Find( OUString("Name"), SbxCLASS_PROPERTY ); - DBG_ASSERT( p, "No Name Property" ); + assert(p && "No Name Property"); p->SetUserData( ATTR_IMP_NAME ); // register methods |