summaryrefslogtreecommitdiffstats
path: root/src/codecs/tqjiscodec.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/tqjiscodec.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/tqjiscodec.cpp')
-rw-r--r--src/codecs/tqjiscodec.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/codecs/tqjiscodec.cpp b/src/codecs/tqjiscodec.cpp
index beb5863c3..b3be343f2 100644
--- a/src/codecs/tqjiscodec.cpp
+++ b/src/codecs/tqjiscodec.cpp
@@ -393,13 +393,13 @@ int TQJisCodec::heuristicNameMatch(const char* hint) const
return 10;
int score = 0;
- bool ja = FALSE;
+ bool ja = false;
if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) {
score += 3;
- ja = TRUE;
+ ja = true;
} else if (tqstrnicmp(hint, "ja", 2) == 0) {
score += 2;
- ja = TRUE;
+ ja = true;
}
const char *p;
if (ja) {
@@ -558,7 +558,7 @@ class TQJisDecoder : public TQTextDecoder {
bool esc;
const TQJpUnicodeConv * const conv;
public:
- TQJisDecoder(const TQJpUnicodeConv *c) : nbuf(0), state(Ascii), prev(Ascii), esc(FALSE), conv(c)
+ TQJisDecoder(const TQJpUnicodeConv *c) : nbuf(0), state(Ascii), prev(Ascii), esc(false), conv(c)
{
}
@@ -576,7 +576,7 @@ public:
buf[nbuf++] = ch;
} else {
nbuf = 0;
- esc = FALSE;
+ esc = false;
}
break;
case 1:
@@ -593,7 +593,7 @@ public:
break;
}
nbuf = 0;
- esc = FALSE;
+ esc = false;
}
} else {
if (buf[0] == '(') {
@@ -610,7 +610,7 @@ public:
}
}
nbuf = 0;
- esc = FALSE;
+ esc = false;
}
break;
case 2:
@@ -622,14 +622,14 @@ public:
}
}
nbuf = 0;
- esc = FALSE;
+ esc = false;
break;
}
} else {
if (ch == Esc) {
// Escape sequence
nbuf = 0;
- esc = TRUE;
+ esc = true;
} else if (ch == So) {
// Shift out
prev = state;