diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 15:17:51 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-14 17:51:59 +0900 |
| commit | 3a477fb70884668d163f6631a73c8ab894928bcc (patch) | |
| tree | 0ac0327df978cf22b7a1f495f0649591bb39ed2a /src/kernel/qfont_x11.cpp | |
| parent | e4085a83c143eb366d0364596297b322476cc652 (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Replace TRUE/FALSE with boolean values true/false - part 8r14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7d612f7c91d55501276a385a30dbadb121e7bd9f)
Diffstat (limited to 'src/kernel/qfont_x11.cpp')
| -rw-r--r-- | src/kernel/qfont_x11.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/qfont_x11.cpp b/src/kernel/qfont_x11.cpp index baeb0a939..531eb6d19 100644 --- a/src/kernel/qfont_x11.cpp +++ b/src/kernel/qfont_x11.cpp @@ -69,7 +69,7 @@ #define TQFONTLOADER_DEBUG #define TQFONTLOADER_DEBUG_VERBOSE -TQ_EXPORT bool tqt_has_xft = FALSE; +TQ_EXPORT bool tqt_has_xft = false; #ifndef TQT_NO_XFTFREETYPE TQt::HANDLE qt_xft_handle(const TQFont &font) @@ -197,7 +197,7 @@ void TQFont::initialize() #ifndef TQT_NO_CODECS #ifndef TQT_NO_BIG_CODECS - static bool codecs_once = FALSE; + static bool codecs_once = false; if ( ! codecs_once ) { (void) new TQFontJis0201Codec; (void) new TQFontJis0208Codec; @@ -208,7 +208,7 @@ void TQFont::initialize() (void) new TQFontBig5Codec; (void) new TQFontBig5hkscsCodec; (void) new TQFontLaoCodec; - codecs_once = TRUE; + codecs_once = true; } #endif // TQT_NO_BIG_CODECS #endif // TQT_NO_CODECS @@ -419,8 +419,8 @@ void TQFontPrivate::load( TQFont::Script script ) } /*! - Returns TRUE if the font attributes have been changed and the font - has to be (re)loaded; otherwise returns FALSE. + Returns true if the font attributes have been changed and the font + has to be (re)loaded; otherwise returns false. */ bool TQFont::dirty() const { @@ -507,7 +507,7 @@ void TQFont::setRawName( const TQString &name ) #endif // QT_CHECK_STATE setFamily( name ); - setRawMode( TRUE ); + setRawMode( true ); } else { d->mask = TQFontPrivate::Complete; } @@ -581,7 +581,7 @@ static const char * const tryFonts[] = { 0 }; -// Returns TRUE if the font exists, FALSE otherwise +// Returns true if the font exists, false otherwise static bool fontExists( const TQString &fontName ) { int count; @@ -666,7 +666,7 @@ int TQFontMetrics::width( TQChar ch ) const glyph_t glyphs[8]; advance_t advances[8]; int nglyphs = 7; - engine->stringToCMap( &ch, 1, glyphs, advances, &nglyphs, FALSE ); + engine->stringToCMap( &ch, 1, glyphs, advances, &nglyphs, false ); // ### can nglyphs != 1 happen at all? Not currently I think if ( uc < TQFontEngineData::widthCacheSize && advances[0] > 0 && advances[0] < 0x100 ) @@ -720,7 +720,7 @@ int TQFontMetrics::charWidth( const TQString &str, int pos ) const glyph_t glyphs[8]; advance_t advances[8]; int nglyphs = 7; - engine->stringToCMap( &ch, isSurrogate ? 2 : 1, glyphs, advances, &nglyphs, FALSE ); + engine->stringToCMap( &ch, isSurrogate ? 2 : 1, glyphs, advances, &nglyphs, false ); width = advances[0]; } if ( uc < TQFontEngineData::widthCacheSize && width > 0 && width < 0x100 ) |
