summaryrefslogtreecommitdiff
path: root/ucbhelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-08 08:16:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-30 13:59:47 +0100
commit2cf0f6ea36e1525193544258eef2828a54345510 (patch)
treeb1033cc7f7ef1061bc16baa8a52480ced38e8b55 /ucbhelper/source
parent48f2b7a7af3d4e9bf1b3c27e9aa5e12e60878051 (diff)
fdo#46808, use service constructor for ucb::CachedDynamicResultSetStubFactory
Change-Id: Iea7b21621c5d341468976507684a9c01f0822034
Diffstat (limited to 'ucbhelper/source')
-rw-r--r--ucbhelper/source/provider/resultsethelper.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx
index e57bb5699c0e..7b3372111e8c 100644
--- a/ucbhelper/source/provider/resultsethelper.cxx
+++ b/ucbhelper/source/provider/resultsethelper.cxx
@@ -28,10 +28,11 @@
*************************************************************************/
#include <com/sun/star/ucb/ListActionType.hpp>
#include <com/sun/star/ucb/WelcomeDynamicResultSetStruct.hpp>
-#include <com/sun/star/ucb/XCachedDynamicResultSetStubFactory.hpp>
+#include <com/sun/star/ucb/CachedDynamicResultSetStubFactory.hpp>
#include <com/sun/star/ucb/XSourceInitialization.hpp>
#include <cppuhelper/interfacecontainer.hxx>
#include <ucbhelper/resultsethelper.hxx>
+#include <ucbhelper/getcomponentcontext.hxx>
#include "osl/diagnose.h"
@@ -49,13 +50,13 @@ namespace ucbhelper {
//=========================================================================
ResultSetImplHelper::ResultSetImplHelper(
- const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
+ const uno::Reference< uno::XComponentContext >& rxContext,
const com::sun::star::ucb::OpenCommandArgument2& rCommand )
: m_pDisposeEventListeners( 0 ),
m_bStatic( sal_False ),
m_bInitDone( sal_False ),
m_aCommand( rCommand ),
- m_xSMgr( rxSMgr )
+ m_xContext( rxContext )
{
}
@@ -249,12 +250,8 @@ void SAL_CALL ResultSetImplHelper::connectToCache(
try
{
xStubFactory
- = uno::Reference<
- com::sun::star::ucb::XCachedDynamicResultSetStubFactory >(
- m_xSMgr->createInstance(
- rtl::OUString(
- "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ) ),
- uno::UNO_QUERY );
+ = com::sun::star::ucb::CachedDynamicResultSetStubFactory::create(
+ m_xContext );
}
catch ( uno::Exception const & )
{