From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tagreader-with-features-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/tagreader-with-features-example.html') diff --git a/doc/html/tagreader-with-features-example.html b/doc/html/tagreader-with-features-example.html index 0e70aee56..2390d6c56 100644 --- a/doc/html/tagreader-with-features-example.html +++ b/doc/html/tagreader-with-features-example.html @@ -119,21 +119,21 @@ void StructureParser::setListView( element = new TQListViewItem( table, qName, namespaceURI ); } stack.push( element ); - element->setOpen( TRUE ); + element->setOpen( true ); if ( attributes.length() > 0 ) { for ( int i = 0 ; i < attributes.length(); i++ ) { new TQListViewItem( element, attributes.qName(i), attributes.uri(i) ); } } - return TRUE; + return true; } bool StructureParser::endElement( const TQString&, const TQString&, const TQString& ) { stack.pop(); - return TRUE; + return true; } @@ -178,35 +178,35 @@ int main( int argc, char **argv ) "table_namespace_prefix" ); handler->setListView( namespacePrefix ); reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", - TRUE ); + true ); source.reset(); reader.parse( source ); TQListView * prefix = new TQListView( container, "table_prefix"); handler->setListView( prefix ); - reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", false ); source.reset(); reader.parse( source ); // namespace label (void) new TQLabel( "Default:\n" - "http://xml.org/sax/features/namespaces: TRUE\n" - "http://xml.org/sax/features/namespace-prefixes: FALSE\n", + "http://xml.org/sax/features/namespaces: true\n" + "http://xml.org/sax/features/namespace-prefixes: false\n", container ); // namespace prefix label (void) new TQLabel( "\n" - "http://xml.org/sax/features/namespaces: TRUE\n" - "http://xml.org/sax/features/namespace-prefixes: TRUE\n", + "http://xml.org/sax/features/namespaces: true\n" + "http://xml.org/sax/features/namespace-prefixes: true\n", container ); // prefix label (void) new TQLabel( "\n" - "http://xml.org/sax/features/namespaces: FALSE\n" - "http://xml.org/sax/features/namespace-prefixes: TRUE\n", + "http://xml.org/sax/features/namespaces: false\n" + "http://xml.org/sax/features/namespace-prefixes: true\n", container ); -- cgit v1.2.3