diff options
author | Neil <nyamatongwe@gmail.com> | 2023-01-12 22:25:24 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-01-12 22:25:24 +1100 |
commit | 28d0a77bff56407bdfbe3a37e6d5316d88e9138d (patch) | |
tree | b7772929a04ff26f0537ca6a367e4d2e5a91adcc | |
parent | b3574a4cf62c635758ed2aee27eca10909b23e0e (diff) | |
download | scintilla-mirror-28d0a77bff56407bdfbe3a37e6d5316d88e9138d.tar.gz |
Remove erroneous and unnecessary casts for FindTextFull.
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 082385391..89f248dbe 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4117,14 +4117,14 @@ Sci::Position Editor::FindTextFull( pdoc->SetCaseFolder(CaseFolderForEncoding()); try { const Sci::Position pos = pdoc->FindText( - static_cast<Sci::Position>(ft->chrg.cpMin), - static_cast<Sci::Position>(ft->chrg.cpMax), + ft->chrg.cpMin, + ft->chrg.cpMax, ft->lpstrText, static_cast<FindOption>(wParam), &lengthFound); if (pos != -1) { - ft->chrgText.cpMin = static_cast<Sci_PositionCR>(pos); - ft->chrgText.cpMax = static_cast<Sci_PositionCR>(pos + lengthFound); + ft->chrgText.cpMin = pos; + ft->chrgText.cpMax = pos + lengthFound; } return pos; } catch (RegexError &) { |