From 3977d024b2d372bc643bb364d459d3a52051c833 Mon Sep 17 00:00:00 2001 From: blu3mania Date: Sun, 3 Apr 2022 10:34:27 -0400 Subject: [PATCH] Move method around to (hopefully) address the false alarm on x86 build from VirusTotal. --- src/Plugin/Lexer/LexerDefinition.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Plugin/Lexer/LexerDefinition.cpp b/src/Plugin/Lexer/LexerDefinition.cpp index cbc3963..204ff9e 100644 --- a/src/Plugin/Lexer/LexerDefinition.cpp +++ b/src/Plugin/Lexer/LexerDefinition.cpp @@ -38,6 +38,13 @@ namespace papyrus { } } + ILexer* SCI_METHOD CreateLexer(const char* name) { + if (strcmp(name, Lexer::name()) == 0) { + return Lexer::factory(); + } + return nullptr; + } + // Not required anymore, but kept for compatibility with Notepad++ 8.3 - 8.3.3 void SCI_METHOD GetLexerStatusText(int index, TCHAR* text, int length) { // From NPP's Parameters.h: @@ -60,11 +67,4 @@ namespace papyrus { return nullptr; } - ILexer* SCI_METHOD CreateLexer(const char* name) { - if (strcmp(name, Lexer::name()) == 0) { - return Lexer::factory(); - } - return nullptr; - } - } // namespace