aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-22 09:11:03 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-22 09:11:03 +1000
commit0801e0084a5cf87f424235d5947f5158474d5da4 (patch)
treec5e5a3be2dfd1d94dd3597cb39edadc510f0273e /src/ScintillaBase.cxx
parentaf243dd42dabdabd15a92a295d66f721e44dd473 (diff)
downloadscintilla-mirror-0801e0084a5cf87f424235d5947f5158474d5da4.tar.gz
Encapsulate the LexInterface of Document.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 659a37b90..0fbf555d1 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -581,10 +581,10 @@ LexState::~LexState() {
}
LexState *ScintillaBase::DocumentLexState() {
- if (!pdoc->pli) {
- pdoc->pli = new LexState(pdoc);
+ if (!pdoc->GetLexInterface()) {
+ pdoc->SetLexInterface(new LexState(pdoc));
}
- return static_cast<LexState *>(pdoc->pli);
+ return static_cast<LexState *>(pdoc->GetLexInterface());
}
void LexState::SetLexerModule(const LexerModule *lex) {