From c832ba7c7debddc2c2e5475dbd0b203a17bda4c1 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Oct 2018 09:06:39 +1100 Subject: Backport: Use nullptr and default brace initialisation for some simple cases. Backport of changeset 7118:526318f7d6c7. --- src/Catalogue.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Catalogue.cxx') diff --git a/src/Catalogue.cxx b/src/Catalogue.cxx index 4e5b26bcc..2a42d9f99 100644 --- a/src/Catalogue.cxx +++ b/src/Catalogue.cxx @@ -33,7 +33,7 @@ const LexerModule *Catalogue::Find(int language) { return lm; } } - return 0; + return nullptr; } const LexerModule *Catalogue::Find(const char *languageName) { @@ -45,7 +45,7 @@ const LexerModule *Catalogue::Find(const char *languageName) { } } } - return 0; + return nullptr; } void Catalogue::AddLexerModule(LexerModule *plm) { -- cgit v1.2.3