summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/runtime/formoperations.cxx2
-rw-r--r--forms/source/xforms/computedexpression.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index 083844e7f215..3e0d8d485837 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -132,7 +132,7 @@ namespace frm
,m_bActiveControlModified( false )
,m_bConstructed( false )
#ifdef DBG_UTIL
- ,m_nMethodNestingLevel( false )
+ ,m_nMethodNestingLevel( 0 )
#endif
{
}
diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx
index 306dbd98bb12..809f80fac1d1 100644
--- a/forms/source/xforms/computedexpression.cxx
+++ b/forms/source/xforms/computedexpression.cxx
@@ -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 );
}