i18npool/source/search/textsearch.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 67ab2ce3c6fed2ceaacaad890a7d8683ce0397a7
Author: Eike Rathke <[email protected]>
Date:   Mon Nov 23 20:09:44 2015 +0100

    remove comment that makes no sense, tdf#94810 follow-up
    
    nStart should not become <0, not even when searching for $ end.
    
    Change-Id: I79586471f1a7908372fa3ee044a6f66499b1790f

diff --git a/i18npool/source/search/textsearch.cxx 
b/i18npool/source/search/textsearch.cxx
index fa4cdba..39d1fd3 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -301,7 +301,7 @@ SearchResult TextSearch::searchForward( const OUString& 
searchStr, sal_Int32 sta
             for ( sal_Int32 k = 0; k < nGroups; k++ )
             {
                 const sal_Int32 nStart = sres.startOffset[k] - nExtraOffset;
-                assert(nStart >= 0); // if not (e.g. searching for $ with ICU 
regex engine), then what?
+                assert(nStart >= 0);
                 sres.startOffset[k] = (nStart < nOffsets ? offset[nStart] : 
(offset[nOffsets - 1] + 1));
                 // JP 20.6.2001: end is ever exclusive and then don't return
                 //               the position of the next character - return 
the
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to