diff options
author | Neil <nyamatongwe@gmail.com> | 2018-10-17 09:06:39 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-10-17 09:06:39 +1100 |
commit | 2b65d913d87aa53b35e6a2626c0e542091a4bf81 (patch) | |
tree | ca4cf34ae5cfd5eac5c7a03961e879989ed0f437 /src/ExternalLexer.cxx | |
parent | 1525b912fb36d6d160dd1d3b3d2f8adb20d61d95 (diff) | |
download | scintilla-mirror-2b65d913d87aa53b35e6a2626c0e542091a4bf81.tar.gz |
Use nullptr and default brace initialisation for some simple cases.
Diffstat (limited to 'src/ExternalLexer.cxx')
-rw-r--r-- | src/ExternalLexer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ExternalLexer.cxx b/src/ExternalLexer.cxx index dd9a7179e..0326f19de 100644 --- a/src/ExternalLexer.cxx +++ b/src/ExternalLexer.cxx @@ -65,7 +65,7 @@ LexerLibrary::LexerLibrary(const char *moduleName_) { // Assign a buffer for the lexer name. char lexname[100] = ""; GetLexerName(i, lexname, sizeof(lexname)); - ExternalLexerModule *lex = new ExternalLexerModule(SCLEX_AUTOMATIC, NULL, lexname, NULL); + ExternalLexerModule *lex = new ExternalLexerModule(SCLEX_AUTOMATIC, nullptr, lexname, nullptr); // This is storing a second reference to lex in the Catalogue as well as in modules. // TODO: Should use std::shared_ptr or similar to ensure allocation safety. Catalogue::AddLexerModule(lex); |