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/source/xforms/computedexpression.cxx | |
parent | Jewish Calendar: updated URL of borrowed code (diff) | |
download | core-c50eb68af3096645246a77259bb3d1cc70eb6b63.tar.gz core-c50eb68af3096645246a77259bb3d1cc70eb6b63.zip |
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/source/xforms/computedexpression.cxx')
-rw-r--r-- | forms/source/xforms/computedexpression.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); } |