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 18:34:55 +0900 |
| commit | ceb93b10fa4bfc790da00cb71876a81db1f93dae (patch) | |
| tree | 2364f896b3fbc7d9c73f6b342b750b676ec0a40f /src/codecs/qgb18030codec.cpp | |
| parent | b87533f9904c10f24d6b2e8177c00944e3efe15b (diff) | |
| download | tqt-ceb93b10fa4bfc790da00cb71876a81db1f93dae.tar.gz tqt-ceb93b10fa4bfc790da00cb71876a81db1f93dae.zip | |
Replace TRUE/FALSE with boolean values true/false - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d9f24c630d3a86190017de303bc5750e532cdb61)
Diffstat (limited to 'src/codecs/qgb18030codec.cpp')
| -rw-r--r-- | src/codecs/qgb18030codec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 ) { |
