Kaydet (Commit) 459c8131 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: Iba5bf2d2207f80098cb43ff8ce290eef741d21c9
üst 05832453
......@@ -132,7 +132,7 @@ namespace frm
,m_bActiveControlModified( false )
,m_bConstructed( false )
#ifdef DBG_UTIL
,m_nMethodNestingLevel( false )
,m_nMethodNestingLevel( 0 )
#endif
{
}
......
......@@ -98,11 +98,11 @@ bool ComputedExpression::_checkExpression( const sal_Char* pExpression ) const
sal_Int32 nLength = msExpression.getLength();
sal_Int32 nStart = 0;
sal_Int32 nEnd = nLength;
int nSearch = aTextSearch.SearchForward( msExpression, &nStart, &nEnd );
bool nSearch = aTextSearch.SearchForward( msExpression, &nStart, &nEnd );
// our expression is static only if 1) we found our regexp, and 2)
// the regexp goes from beginning to end.
return ( nLength == 0 || nSearch != 0 )
return ( nLength == 0 || nSearch )
&& ( nStart == 0 && nEnd == nLength );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment