diff options
author | Stefan Heinemann <stefan.heinemann@codedump.ch> | 2015-09-25 13:06:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-09-29 18:33:40 +0000 |
commit | c50eb68af3096645246a77259bb3d1cc70eb6b63 (patch) | |
tree | a3f9442fa2d2c13464d1623f8bcf772b27426e72 /forms | |
parent | 491c2e24ac110c9ebdb1a483c34ae3d14ab0d615 (diff) |
Renamed wrongly prefixed boolean variables
Fixed tdf#94269
Change-Id: I63109cc4e095bad680d7637a065080ea368860ae
Reviewed-on: https://gerrit.libreoffice.org/18851
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.cxx | 6 | ||||
-rw-r--r-- | forms/source/xforms/computedexpression.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx index a444551929bf..1beabd0b0e8c 100644 --- a/forms/source/richtext/richtextvclcontrol.cxx +++ b/forms/source/richtext/richtextvclcontrol.cxx @@ -286,13 +286,13 @@ namespace frm bool RichTextControl::Notify( NotifyEvent& _rNEvt ) { - bool nDone = false; + bool bDone = false; if ( _rNEvt.GetType() == MouseNotifyEvent::COMMAND ) { const CommandEvent& rEvent = *_rNEvt.GetCommandEvent(); - nDone = m_pImpl->HandleCommand( rEvent ); + bDone = m_pImpl->HandleCommand( rEvent ); } - return nDone || Control::Notify( _rNEvt ); + return bDone || Control::Notify( _rNEvt ); } diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx index d51e71f8bed9..08fc7511f460 100644 --- a/forms/source/xforms/computedexpression.cxx +++ b/forms/source/xforms/computedexpression.cxx @@ -96,11 +96,11 @@ bool ComputedExpression::_checkExpression( const sal_Char* pExpression ) const sal_Int32 nLength = msExpression.getLength(); sal_Int32 nStart = 0; sal_Int32 nEnd = nLength; - bool nSearch = aTextSearch.SearchForward( msExpression, &nStart, &nEnd ); + bool bSearch = 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 ) + return ( nLength == 0 || bSearch ) && ( nStart == 0 && nEnd == nLength ); } |