diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 10:28:52 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 10:28:52 +0000 |
commit | 71323ffaa7c6ed3eafaf707480b7a41898a9b76c (patch) | |
tree | b76f3b17132acfc18d1ca58fc37a7bff2f2ce3ae /xmlhelp/source/treeview | |
parent | 0bce2e3837001c5608c8ca0c16251a6290a6edca (diff) |
INTEGRATION: CWS sb59 (1.18.12); FILE MERGED
2006/08/30 11:10:28 sb 1.18.12.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'xmlhelp/source/treeview')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 3fa27b522438..643c5b240a35 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -118,10 +118,13 @@ namespace treeview { { if( ! targetURL.getLength() ) { - const TVDom* p = this; sal_Int32 len; - while( ! ( len = p->application.getLength() ) ) - p = p->parent; + for ( const TVDom* p = this;; p = p->parent ) + { + len = p->application.getLength(); + if ( len != 0 ) + break; + } rtl::OUStringBuffer strBuff( 22 + len + id.getLength() ); strBuff.appendAscii( @@ -911,7 +914,7 @@ void TVChildTarget::subst( const Reference< XMultiServiceFactory >& m_xSMgr, m_xSMgr->createInstance( rtl::OUString::createFromAscii( "com.sun.star.config.SpecialConfigManager" ) ), UNO_QUERY ); } - catch( const com::sun::star::uno::Exception& e ) + catch( const com::sun::star::uno::Exception& ) { OSL_ENSURE( xCfgMgr.is()," cant instantiate the special config manager " ); } |