summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorJuergen Schmidt <jsc@openoffice.org>2010-08-24 17:53:12 +0200
committerJuergen Schmidt <jsc@openoffice.org>2010-08-24 17:53:12 +0200
commit46cc97b7825b74b9d6f718cb4e7645ce1278a05a (patch)
tree9acc65c848272f3764c33cb413e6625bc19ee124 /ucb
parent9f2a658025c92f5d9dac1d717e0517fba8589d69 (diff)
fwk154: i114090: adapt listener code to reflect changes in config mgr, notification of change events
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/ucb.cxx26
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();