aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-11-26 11:16:50 +1100
committernyamatongwe <devnull@localhost>2011-11-26 11:16:50 +1100
commitb0fac0b811b164f74d564782f99df76effd383c9 (patch)
treef79c6948ed27c95dd069685f26a1ccc84536ee4f /src
parente79bf3a5439bd2bb4b6f978e85326d87a979a1a8 (diff)
downloadscintilla-mirror-b0fac0b811b164f74d564782f99df76effd383c9.tar.gz
Removed unreachable code. Issue described in bug 3440534.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index c721c88ff..a0dc7f54c 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1461,7 +1461,7 @@ long Document::FindText(int minPos, int maxPos, const char *search,
const int endPos = MovePositionOutsideChar(maxPos, increment, false);
// Compute actual search ranges needed
- const int lengthFind = (*length == -1) ? static_cast<int>(strlen(search)) : *length;
+ const int lengthFind = *length;
//Platform::DebugPrintf("Find %d %d %s %d\n", startPos, endPos, ft->lpstrText, lengthFind);
const int limitPos = Platform::Maximum(startPos, endPos);