From 60e87889d6438e386acf58c3967fb874af9aae82 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Jan 2020 21:22:02 -0500 Subject: Added Sci::make_unique() and Sci::size() for better compatibility with the default branch. std::make_unique() is c++14 and std::size() is c++17. --- src/ExternalLexer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ExternalLexer.cxx') 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(lib)); + libraries.push_back(Sci::make_unique(path)); } void LexerManager::Clear() noexcept { -- cgit v1.2.3