From 2b655a29a4e4d7e343884b85742aed8a033b6eef Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 7 Apr 2000 12:04:36 +0000 Subject: Changing code to ensure no warnings are produced by compilers. --- src/Document.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 650c0ced2..44e55671f 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -634,11 +634,9 @@ long Document::FindText(int minPos, int maxPos, const char *s, bool caseSensitiv // Compute actual search ranges needed int lengthFind = strlen(s); - int endSearch = 0; + int endSearch = endPos; if (startPos <= endPos) { endSearch = endPos - lengthFind + 1; - } else { - endSearch = endPos; } //Platform::DebugPrintf("Find %d %d %s %d\n", startPos, endPos, ft->lpstrText, lengthFind); char firstChar = s[0]; -- cgit v1.2.3