diff options
-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 " ); } |