use assert when followed by deref

Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
This commit is contained in:
Caolán McNamara
2014-07-03 08:51:19 +01:00
parent 6fe1e3af0e
commit 4228f08d60
27 changed files with 90 additions and 106 deletions

View File

@@ -83,7 +83,7 @@ void ComputedExpression::setExpression( const OUString& rExpression )
bool ComputedExpression::_checkExpression( const sal_Char* pExpression ) const
{
OSL_ENSURE( pExpression != NULL, "no expression?" );
assert(pExpression && "no expression?");
// call RegExp engine
SearchOptions aSearchOptions;