diff options
author | Andreas Bille <abi@openoffice.org> | 2001-07-12 13:35:29 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-07-12 13:35:29 +0000 |
commit | 088443f26f17076a1ab4be7c7458bd3fed5d32dc (patch) | |
tree | f88c9b3a04abd427b6f6169da505f18ffb39da08 /xmlhelp | |
parent | 02c5a9b7feb987f808872697626058a891365051 (diff) |
Removed some comments
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 738baa7602c4..3e476b851438 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -354,11 +354,8 @@ void start_handler(void *userData, TVDom *p; p = *tvDom; -// if( kind == TVDom::tree_node ) - { - *tvDom = p->newChild(); - p = *tvDom; - } + *tvDom = p->newChild(); + p = *tvDom; p->setKind( kind ); while( *atts ) @@ -381,9 +378,7 @@ void end_handler(void *userData, const XML_Char *name ) { TVDom **tvDom = static_cast< TVDom** >( userData ); - -// if( (*tvDom)->getKind() == TVDom::tree_node ) - *tvDom = (*tvDom)->getParent(); + *tvDom = (*tvDom)->getParent(); } @@ -528,7 +523,7 @@ TVChildTarget::getByHierarchicalName( const rtl::OUString& aName ) if( ( idx = name.indexOf( sal_Unicode( '/' ) ) ) != -1 ) { - sal_Int32 pref = name.copy( 0,idx ).toInt32() - 1; + sal_Int32 pref = name.copy(0,idx).toInt32() - 1; if( pref < 0 || Elements.size() <= sal_uInt32( pref ) ) throw NoSuchElementException(); |