diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2010-08-24 17:53:12 +0200 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2010-08-24 17:53:12 +0200 |
commit | 46cc97b7825b74b9d6f718cb4e7645ce1278a05a (patch) | |
tree | 9acc65c848272f3764c33cb413e6625bc19ee124 /ucb | |
parent | 9f2a658025c92f5d9dac1d717e0517fba8589d69 (diff) |
fwk154: i114090: adapt listener code to reflect changes in config mgr, notification of change events
(transplanted from 7c0cad639e0b6d74f4be88f5877270f1a8b9fa53)
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucb.cxx | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index e44956b2a0..fadadd007d 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -647,28 +647,10 @@ void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent& sal_Int32 nCount = Event.Changes.getLength(); if ( nCount ) { - - uno::Reference< lang::XMultiServiceFactory > xConfigProv( - m_xSMgr->createInstance( - rtl::OUString::createFromAscii( - "com.sun.star.configuration.ConfigurationProvider" ) ), - uno::UNO_QUERY_THROW ); - - uno::Sequence< uno::Any > aArguments( 1 ); - beans::PropertyValue aProperty; - aProperty.Name - = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) ); - aProperty.Value <<= Event.Base; - aArguments[ 0 ] <<= aProperty; - - uno::Reference< uno::XInterface > xInterface( - xConfigProv->createInstanceWithArguments( - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( - "com.sun.star.configuration.ConfigurationAccess" ) ), - aArguments ) ); - - uno::Reference< container::XHierarchicalNameAccess > - xHierNameAccess( xInterface, uno::UNO_QUERY_THROW ); + uno::Reference< container::XHierarchicalNameAccess > xHierNameAccess; + Event.Base >>= xHierNameAccess; + + OSL_ASSERT( xHierNameAccess.is() ); const util::ElementChange* pElementChanges = Event.Changes.getConstArray(); |