aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WindowAccessor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index e980b9a77..ce42534e7 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -42,7 +42,7 @@ void WindowAccessor::Fill(int position) {
endPos = lenDoc;
TextRange tr = {{startPos, endPos}, buf};
- Platform::SendScintilla(id, SCI_GETTEXTRANGE, 0, reinterpret_cast<long>(&tr));
+ Platform::SendScintillaPointer(id, SCI_GETTEXTRANGE, 0, &tr);
}
bool WindowAccessor::Match(int pos, const char *s) {
@@ -125,8 +125,8 @@ void WindowAccessor::Flush() {
startPos = extremePosition;
lenDoc = -1;
if (validLen > 0) {
- Platform::SendScintilla(id, SCI_SETSTYLINGEX, validLen,
- reinterpret_cast<long>(styleBuf));
+ Platform::SendScintillaPointer(id, SCI_SETSTYLINGEX, validLen,
+ styleBuf);
validLen = 0;
}
}