diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 08:53:47 +0900 |
| commit | c03a4800879ab62692e017e01c825ba12a421ad0 (patch) | |
| tree | 57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/xml/tagreader-with-features | |
| parent | 030b165ac197ce4c2eb62c7700dc4c10604637aa (diff) | |
| download | tqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/xml/tagreader-with-features')
| -rw-r--r-- | examples/xml/tagreader-with-features/structureparser.cpp | 6 | ||||
| -rw-r--r-- | examples/xml/tagreader-with-features/tagreader.cpp | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/examples/xml/tagreader-with-features/structureparser.cpp b/examples/xml/tagreader-with-features/structureparser.cpp index 946127626..5d9559efc 100644 --- a/examples/xml/tagreader-with-features/structureparser.cpp +++ b/examples/xml/tagreader-with-features/structureparser.cpp @@ -38,19 +38,19 @@ bool StructureParser::startElement( const TQString& namespaceURI, 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; } diff --git a/examples/xml/tagreader-with-features/tagreader.cpp b/examples/xml/tagreader-with-features/tagreader.cpp index 9715ef8a5..0052efe56 100644 --- a/examples/xml/tagreader-with-features/tagreader.cpp +++ b/examples/xml/tagreader-with-features/tagreader.cpp @@ -36,35 +36,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 ); |
