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 /unotools | |
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 'unotools')
-rw-r--r-- | unotools/source/i18n/textsearch.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 046c581268d0..b469126f8e76 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -209,7 +209,7 @@ bool TextSearch::SearchForward( const OUString &rStr, sal_Int32* pStart, sal_Int32* pEnd, ::com::sun::star::util::SearchResult* pRes) { - bool nRet = false; + bool bRet = false; try { if( xTextSearch.is() ) @@ -217,7 +217,7 @@ bool TextSearch::SearchForward( const OUString &rStr, SearchResult aRet( xTextSearch->searchForward( rStr, *pStart, *pEnd )); if( aRet.subRegExpressions > 0 ) { - nRet = true; + bRet = true; // the XTextsearch returns in startOffset the higher position // and the endposition is always exclusive. // The caller of this function will have in startPos the @@ -233,13 +233,13 @@ bool TextSearch::SearchForward( const OUString &rStr, { SAL_WARN( "unotools.i18n", "SearchForward: Exception caught!" ); } - return nRet; + return bRet; } bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, sal_Int32* pEnde, SearchResult* pRes ) { - bool nRet = false; + bool bRet = false; try { if( xTextSearch.is() ) @@ -247,7 +247,7 @@ bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, SearchResult aRet( xTextSearch->searchBackward( rStr, *pStart, *pEnde )); if( aRet.subRegExpressions ) { - nRet = true; + bRet = true; // the XTextsearch returns in startOffset the higher position // and the endposition is always exclusive. // The caller of this function will have in startPos the @@ -263,7 +263,7 @@ bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, { SAL_WARN( "unotools.i18n", "SearchBackward: Exception caught!" ); } - return nRet; + return bRet; } void TextSearch::ReplaceBackReferences( OUString& rReplaceStr, const OUString &rStr, const SearchResult& rResult ) |