diff options
Diffstat (limited to 'examples/xml')
| -rw-r--r-- | examples/xml/outliner/outlinetree.cpp | 2 | ||||
| -rw-r--r-- | examples/xml/tagreader-with-features/structureparser.cpp | 6 | ||||
| -rw-r--r-- | examples/xml/tagreader-with-features/tagreader.cpp | 16 | ||||
| -rw-r--r-- | examples/xml/tagreader/structureparser.cpp | 6 |
4 files changed, 15 insertions, 15 deletions
diff --git a/examples/xml/outliner/outlinetree.cpp b/examples/xml/outliner/outlinetree.cpp index ba89585b2..c380309eb 100644 --- a/examples/xml/outliner/outlinetree.cpp +++ b/examples/xml/outliner/outlinetree.cpp @@ -17,7 +17,7 @@ OutlineTree::OutlineTree( const TQString fileName, TQWidget *parent, const char // div. configuration of the list view addColumn( "Outlines" ); setSorting( -1 ); - setRootIsDecorated( TRUE ); + setRootIsDecorated( true ); // read the XML file and create DOM tree TQFile opmlFile( fileName ); diff --git a/examples/xml/tagreader-with-features/structureparser.cpp b/examples/xml/tagreader-with-features/structureparser.cpp index cc5e210a1..d63207e97 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 cce97d58d..6116d0b95 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 ); diff --git a/examples/xml/tagreader/structureparser.cpp b/examples/xml/tagreader/structureparser.cpp index a4798dc49..801d8c68c 100644 --- a/examples/xml/tagreader/structureparser.cpp +++ b/examples/xml/tagreader/structureparser.cpp @@ -15,7 +15,7 @@ bool StructureParser::startDocument() { indent = ""; - return TRUE; + return true; } bool StructureParser::startElement( const TQString&, const TQString&, @@ -24,11 +24,11 @@ bool StructureParser::startElement( const TQString&, const TQString&, { printf( "%s%s\n", (const char*)indent, (const char*)qName ); indent += " "; - return TRUE; + return true; } bool StructureParser::endElement( const TQString&, const TQString&, const TQString& ) { indent.remove( (uint)0, 4 ); - return TRUE; + return true; } |
