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 2098fcb6f..8e3a86c15 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -620,7 +620,7 @@ void LexState::SetInstance(ILexer5 *instance_) {
LexState *ScintillaBase::DocumentLexState() {
if (!pdoc->GetLexInterface()) {
- pdoc->SetLexInterface(new LexState(pdoc));
+ pdoc->SetLexInterface(std::make_unique<LexState>(pdoc));
}
return dynamic_cast<LexState *>(pdoc->GetLexInterface());
}