From 28d0a77bff56407bdfbe3a37e6d5316d88e9138d Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 12 Jan 2023 22:25:24 +1100 Subject: Remove erroneous and unnecessary casts for FindTextFull. --- src/Editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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(ft->chrg.cpMin), - static_cast(ft->chrg.cpMax), + ft->chrg.cpMin, + ft->chrg.cpMax, ft->lpstrText, static_cast(wParam), &lengthFound); if (pos != -1) { - ft->chrgText.cpMin = static_cast(pos); - ft->chrgText.cpMax = static_cast(pos + lengthFound); + ft->chrgText.cpMin = pos; + ft->chrgText.cpMax = pos + lengthFound; } return pos; } catch (RegexError &) { -- cgit v1.2.3