diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 08:51:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 12:49:38 +0100 |
commit | 4228f08d6084d8563b70a26a6398fb0caf017f99 (patch) | |
tree | 2f91cb13231f0de1e514dd545e0910b830589fb4 /toolkit | |
parent | 6fe1e3af0e812d99e63677d9ead056357b37ecf7 (diff) |
use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/helper/property.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/helper/property.cxx b/toolkit/source/helper/property.cxx index 5ace0a7d341f..f1d715565445 100644 --- a/toolkit/source/helper/property.cxx +++ b/toolkit/source/helper/property.cxx @@ -363,7 +363,7 @@ sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId ) const OUString& GetPropertyName( sal_uInt16 nPropertyId ) { const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); - DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); + assert(pImplPropertyInfo && "Invalid PropertyId!"); return pImplPropertyInfo->aName; } |