From c50eb68af3096645246a77259bb3d1cc70eb6b63 Mon Sep 17 00:00:00 2001 From: Stefan Heinemann Date: Fri, 25 Sep 2015 13:06:09 +0200 Subject: Renamed wrongly prefixed boolean variables Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- unotools/source/i18n/textsearch.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'unotools') 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 ) -- cgit