diff options
author | Neil <nyamatongwe@gmail.com> | 2023-12-20 09:24:23 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-12-20 09:24:23 +1100 |
commit | 1b153f8d8d4b2f09afc2d039256c958e94bd3b05 (patch) | |
tree | 00cdb1c67b137efb5715e90cc29640a78773b7a3 /call | |
parent | ef42bb46c5182037e276ceb251e604b1bcff8f38 (diff) | |
download | scintilla-mirror-1b153f8d8d4b2f09afc2d039256c958e94bd3b05.tar.gz |
Add IDocumentEditable interface for efficient interaction with document objects.
Diffstat (limited to 'call')
-rw-r--r-- | call/ScintillaCall.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index 99e400e28..98e1dbd3e 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -2071,11 +2071,11 @@ void ScintillaCall::SetViewEOL(bool visible) { Call(Message::SetViewEOL, visible); } -void *ScintillaCall::DocPointer() { - return reinterpret_cast<void *>(Call(Message::GetDocPointer)); +IDocumentEditable *ScintillaCall::DocPointer() { + return reinterpret_cast<IDocumentEditable *>(Call(Message::GetDocPointer)); } -void ScintillaCall::SetDocPointer(void *doc) { +void ScintillaCall::SetDocPointer(IDocumentEditable *doc) { CallPointer(Message::SetDocPointer, 0, doc); } @@ -2151,15 +2151,15 @@ int ScintillaCall::Zoom() { return static_cast<int>(Call(Message::GetZoom)); } -void *ScintillaCall::CreateDocument(Position bytes, Scintilla::DocumentOption documentOptions) { - return reinterpret_cast<void *>(Call(Message::CreateDocument, bytes, static_cast<intptr_t>(documentOptions))); +IDocumentEditable *ScintillaCall::CreateDocument(Position bytes, Scintilla::DocumentOption documentOptions) { + return reinterpret_cast<IDocumentEditable *>(Call(Message::CreateDocument, bytes, static_cast<intptr_t>(documentOptions))); } -void ScintillaCall::AddRefDocument(void *doc) { +void ScintillaCall::AddRefDocument(IDocumentEditable *doc) { CallPointer(Message::AddRefDocument, 0, doc); } -void ScintillaCall::ReleaseDocument(void *doc) { +void ScintillaCall::ReleaseDocument(IDocumentEditable *doc) { CallPointer(Message::ReleaseDocument, 0, doc); } |