diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-05 09:16:19 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-05 09:16:19 +0900 |
| commit | d9f24c630d3a86190017de303bc5750e532cdb61 (patch) | |
| tree | 50ef1ae6ea0187fbbe258f0d73388fc93508eeec /src/codecs/tqbig5codec.cpp | |
| parent | 4d495175043c399fdca6e1bb4c74ef176fc76fb4 (diff) | |
| download | tqt-d9f24c630d3a86190017de303bc5750e532cdb61.tar.gz tqt-d9f24c630d3a86190017de303bc5750e532cdb61.zip | |
Replace TRUE/FALSE with boolean values true/false - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/codecs/tqbig5codec.cpp')
| -rw-r--r-- | src/codecs/tqbig5codec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codecs/tqbig5codec.cpp b/src/codecs/tqbig5codec.cpp index 5184973d2..09db78800 100644 --- a/src/codecs/tqbig5codec.cpp +++ b/src/codecs/tqbig5codec.cpp @@ -715,15 +715,15 @@ int TQBig5Codec::heuristicNameMatch(const char* hint) const { //tqDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); int score = 0; - bool zh = FALSE; + bool zh = false; if (tqstrnicmp(hint, "zh_TW", 5) == 0) { score += 16; - zh = TRUE; + zh = true; } else if ( tqstrnicmp(hint, "zh", 2) == 0 || tqstrnicmp(hint, "chinese", 7) == 0) { score += 2; - zh = TRUE; + zh = true; } const char *p; if (zh) { @@ -962,15 +962,15 @@ int TQBig5hkscsCodec::heuristicNameMatch(const char* hint) const { //tqDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); int score = 0; - bool zh = FALSE; + bool zh = false; if (tqstrnicmp(hint, "zh_HK", 5) == 0) { score += 16; - zh = TRUE; + zh = true; } else if ( tqstrnicmp(hint, "zh", 2) == 0 || tqstrnicmp(hint, "chinese", 7) == 0) { score += 2; - zh = TRUE; + zh = true; } const char *p; if (zh) { |
