From 359afe2cdf9258d42bcce390e2f6e2d941252d9e Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 6 May 2018 21:07:35 -0400 Subject: Backport: Remove casts that are not needed since sptr_t and Sci::Position are the same type. Backport of changeset 6735:ed52dd761341. --- src/ScintillaBase.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 9aea25fa3..722e366c6 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -1048,10 +1048,9 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara case SCI_COLOURISE: if (DocumentLexState()->lexLanguage == SCLEX_CONTAINER) { pdoc->ModifiedAt(static_cast(wParam)); - NotifyStyleToNeeded((lParam == -1) ? pdoc->Length() : - static_cast(lParam)); + NotifyStyleToNeeded((lParam == -1) ? pdoc->Length() : lParam); } else { - DocumentLexState()->Colourise(static_cast(wParam), static_cast(lParam)); + DocumentLexState()->Colourise(static_cast(wParam), lParam); } Redraw(); break; -- cgit v1.2.3