aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-25 15:16:49 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-25 15:16:49 +1000
commitdf48b6485e268fb3781867728d37c0b1df948d28 (patch)
treea80d19d983d34ae1ae54876fd6b4df6e0bbfe7c6 /src/ScintillaBase.cxx
parentcd0e7d81d111bfc38626f58859681a0b0cea160f (diff)
downloadscintilla-mirror-df48b6485e268fb3781867728d37c0b1df948d28.tar.gz
Remove casts that are not needed since sptr_t and Sci::Position are the same type.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 4df4c2a13..353392b09 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<Sci::Position>(wParam));
- NotifyStyleToNeeded((lParam == -1) ? pdoc->Length() :
- static_cast<Sci::Position>(lParam));
+ NotifyStyleToNeeded((lParam == -1) ? pdoc->Length() : lParam);
} else {
- DocumentLexState()->Colourise(static_cast<Sci::Position>(wParam), static_cast<Sci::Position>(lParam));
+ DocumentLexState()->Colourise(static_cast<Sci::Position>(wParam), lParam);
}
Redraw();
break;