summaryrefslogtreecommitdiffstats
path: root/src/codecs/tqgb18030codec.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-05 09:16:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-05 09:16:19 +0900
commitd9f24c630d3a86190017de303bc5750e532cdb61 (patch)
tree50ef1ae6ea0187fbbe258f0d73388fc93508eeec /src/codecs/tqgb18030codec.cpp
parent4d495175043c399fdca6e1bb4c74ef176fc76fb4 (diff)
downloadtqt-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/tqgb18030codec.cpp')
-rw-r--r--src/codecs/tqgb18030codec.cpp12
1 files changed, 6 insertions, 6 deletions
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 ) {