Kaydet (Commit) 71323ffa authored tarafından Oliver Bolte's avatar Oliver Bolte

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).
üst 0bce2e38
...@@ -118,10 +118,13 @@ namespace treeview { ...@@ -118,10 +118,13 @@ namespace treeview {
{ {
if( ! targetURL.getLength() ) if( ! targetURL.getLength() )
{ {
const TVDom* p = this;
sal_Int32 len; sal_Int32 len;
while( ! ( len = p->application.getLength() ) ) for ( const TVDom* p = this;; p = p->parent )
p = p->parent; {
len = p->application.getLength();
if ( len != 0 )
break;
}
rtl::OUStringBuffer strBuff( 22 + len + id.getLength() ); rtl::OUStringBuffer strBuff( 22 + len + id.getLength() );
strBuff.appendAscii( strBuff.appendAscii(
...@@ -911,7 +914,7 @@ void TVChildTarget::subst( const Reference< XMultiServiceFactory >& m_xSMgr, ...@@ -911,7 +914,7 @@ void TVChildTarget::subst( const Reference< XMultiServiceFactory >& m_xSMgr,
m_xSMgr->createInstance( rtl::OUString::createFromAscii( "com.sun.star.config.SpecialConfigManager" ) ), m_xSMgr->createInstance( rtl::OUString::createFromAscii( "com.sun.star.config.SpecialConfigManager" ) ),
UNO_QUERY ); 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 " ); OSL_ENSURE( xCfgMgr.is()," cant instantiate the special config manager " );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment