From 71cba42205ad92d1d946caead382a326008ae110 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 15 Apr 2017 14:28:09 +1000 Subject: Use bool literals true and false instead of 1 and 0. --- lexers/LexHTML.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lexers') diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index bd14534d4..028c5ec90 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -490,9 +490,9 @@ static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType return ((ch == '/') && (chNext == '>')); } else if (0 == strcmp(blockType, "%")) { if (ch == '/' && isLineEnd(chNext)) - return 1; + return true; else - return isLineEnd(ch); + return isLineEnd(ch); } else if (0 == strcmp(blockType, "{")) { return ch == '}'; } else { @@ -502,13 +502,13 @@ static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType static bool isDjangoBlockEnd(const int ch, const int chNext, const char *blockType) { if (strlen(blockType) == 0) { - return 0; + return false; } else if (0 == strcmp(blockType, "%")) { return ((ch == '%') && (chNext == '}')); } else if (0 == strcmp(blockType, "{")) { return ((ch == '}') && (chNext == '}')); } else { - return 0; + return false; } } -- cgit v1.2.3