summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 10:28:52 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 10:28:52 +0000
commitf48d3a8aaa1079cce79abf2dc604c4a878c7176e (patch)
treea42cbe337014bd325c8294ebe01c632bc454f21a /xmlhelp
parent038282d09d7edf763709283e32baf7cd2c96f9c7 (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')
-rw-r--r--xmlhelp/source/treeview/tvread.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index 4bf39c7727..212c476b5c 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 " );
}