From d2d30bfbef26707f9158cbc31d5763a9a1d4ab2d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Apr 2025 12:59:07 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro (cherry picked from commit 5198c9d3ac02aa9c7949f49e3cf374f683facb18) --- kdevdesigner/designer/syntaxhighlighter_html.cpp | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kdevdesigner/designer/syntaxhighlighter_html.cpp') diff --git a/kdevdesigner/designer/syntaxhighlighter_html.cpp b/kdevdesigner/designer/syntaxhighlighter_html.cpp index 5bb681f9..ddc6f649 100644 --- a/kdevdesigner/designer/syntaxhighlighter_html.cpp +++ b/kdevdesigner/designer/syntaxhighlighter_html.cpp @@ -66,7 +66,7 @@ void SyntaxHighlighter_HTML::process( TQTextDocument *doc, TQTextParagraph *stri if ( string->prev() ) { if ( string->prev()->endState() == -1 ) - process( doc, string->prev(), 0, FALSE ); + process( doc, string->prev(), 0, false ); state = string->prev()->endState(); } @@ -77,50 +77,50 @@ void SyntaxHighlighter_HTML::process( TQTextDocument *doc, TQTextParagraph *stri if ( c == '<' ) { if ( state != StateStandard ) - string->setFormat( i - buffer.length(), buffer.length(), formatStandard, FALSE ); + string->setFormat( i - buffer.length(), buffer.length(), formatStandard, false ); buffer = c; state = StateTag; - string->setFormat( i, 1, formatKeyword, FALSE ); + string->setFormat( i, 1, formatKeyword, false ); } else if ( c == '>' && ( state != StateStandard ) ) { - string->setFormat( i, 1, formatKeyword, FALSE ); + string->setFormat( i, 1, formatKeyword, false ); buffer = ""; state = StateStandard; } else if ( c == ' ' && state == StateTag ) { buffer += c; - string->setFormat( i, 1, formatStandard, FALSE ); + string->setFormat( i, 1, formatStandard, false ); state = StateAttribute; } else if ( c == '=' && state == StateAttribute ) { buffer += c; - string->setFormat( i, 1, formatStandard, FALSE ); + string->setFormat( i, 1, formatStandard, false ); state = StateAttribute; } else if ( c == '\"' && state == StateAttribute ) { buffer += c; - string->setFormat( i, 1, formatStandard, FALSE ); + string->setFormat( i, 1, formatStandard, false ); state = StateAttribVal; } else if ( c == '\"' && state == StateAttribVal ) { buffer += c; - string->setFormat( i, 1, formatStandard, FALSE ); + string->setFormat( i, 1, formatStandard, false ); state = StateAttribute; } else if ( state == StateAttribute ) { buffer += c; - string->setFormat( i, 1, formatAttribute, FALSE ); + string->setFormat( i, 1, formatAttribute, false ); } else if ( state == StateAttribVal ) { buffer += c; - string->setFormat( i, 1, formatAttribValue, FALSE ); + string->setFormat( i, 1, formatAttribValue, false ); } else if ( state == StateTag ) { - string->setFormat( i, 1, formatKeyword, FALSE ); + string->setFormat( i, 1, formatKeyword, false ); buffer += c; } else if ( state == StateStandard ) { - string->setFormat( i, 1, formatStandard, FALSE ); + string->setFormat( i, 1, formatStandard, false ); } i++; @@ -129,7 +129,7 @@ void SyntaxHighlighter_HTML::process( TQTextDocument *doc, TQTextParagraph *stri } string->setEndState( state ); - string->setFirstPreProcess( FALSE ); + string->setFirstPreProcess( false ); if ( invalidate && string->next() && !string->next()->firstPreProcess() && string->next()->endState() != -1 ) { -- cgit v1.2.3