From ceb93b10fa4bfc790da00cb71876a81db1f93dae Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 5 Dec 2025 09:16:19 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 5 Signed-off-by: Michele Calgaro (cherry picked from commit d9f24c630d3a86190017de303bc5750e532cdb61) --- src/codecs/qgb18030codec.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/codecs/qgb18030codec.cpp') diff --git a/src/codecs/qgb18030codec.cpp b/src/codecs/qgb18030codec.cpp index 8630cf32e..5595949b8 100644 --- a/src/codecs/qgb18030codec.cpp +++ b/src/codecs/qgb18030codec.cpp @@ -269,11 +269,11 @@ TQString TQGb18030Codec::toUnicode(const char* chars, int len) const int TQGb18030Codec::heuristicNameMatch(const char* hint) const { int score = 0; - bool zh = FALSE; + bool zh = false; //tqDebug("TQGb18030Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; - zh = TRUE; + zh = true; } const char *p; if ( zh ) { @@ -480,11 +480,11 @@ int TQGbkCodec::heuristicNameMatch(const char* hint) const #endif int score = 0; - bool zh = FALSE; + bool zh = false; //tqDebug("TQGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; - zh = TRUE; + zh = true; } const char *p; if ( zh ) { @@ -674,11 +674,11 @@ const char* TQGb2312Codec::name() const int TQGb2312Codec::heuristicNameMatch(const char* hint) const { int score = 0; - bool zh = FALSE; + bool zh = false; //tqDebug("TQGb2312Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; - zh = TRUE; + zh = true; } const char *p; if ( zh ) { -- cgit v1.2.3