From d9f24c630d3a86190017de303bc5750e532cdb61 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 --- src/codecs/tqgb18030codec.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/codecs/tqgb18030codec.cpp') diff --git a/src/codecs/tqgb18030codec.cpp b/src/codecs/tqgb18030codec.cpp index d2578dc8e..e1010864c 100644 --- a/src/codecs/tqgb18030codec.cpp +++ b/src/codecs/tqgb18030codec.cpp @@ -265,11 +265,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 ) { @@ -476,11 +476,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 ) { @@ -670,11 +670,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