summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-11-23 20:09:44 +0100
committerEike Rathke <erack@redhat.com>2015-11-23 20:12:15 +0100
commit67ab2ce3c6fed2ceaacaad890a7d8683ce0397a7 (patch)
tree1b36dcc596eb31d4055a22b8aeafc1edd83c99a3 /i18npool
parent4cf1d290bab29e18e1312b63ff862f5102e00387 (diff)
remove comment that makes no sense, tdf#94810 follow-up
nStart should not become <0, not even when searching for $ end. Change-Id: I79586471f1a7908372fa3ee044a6f66499b1790f
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/search/textsearch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index fa4cdba4a049..39d1fd3b10d3 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