aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 0975028f3..082cb82d5 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -615,7 +615,7 @@ LexState::~LexState() {
LexState *ScintillaBase::DocumentLexState() {
if (!pdoc->GetLexInterface()) {
- pdoc->SetLexInterface(new LexState(pdoc));
+ pdoc->SetLexInterface(Sci::make_unique<LexState>(pdoc));
}
return dynamic_cast<LexState *>(pdoc->GetLexInterface());
}