aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ExternalLexer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ExternalLexer.cxx')
-rw-r--r--src/ExternalLexer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ExternalLexer.cxx b/src/ExternalLexer.cxx
index c6a505007..acb18339d 100644
--- a/src/ExternalLexer.cxx
+++ b/src/ExternalLexer.cxx
@@ -191,8 +191,7 @@ void LexerManager::Load(const char *path) {
if (ll->moduleName == path)
return;
}
- LexerLibrary *lib = new LexerLibrary(path);
- libraries.push_back(std::unique_ptr<LexerLibrary>(lib));
+ libraries.push_back(Sci::make_unique<LexerLibrary>(path));
}
void LexerManager::Clear() noexcept {