From 90a27e2eb905c1a4203a4a652315c16a60d8aa26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Nov 2012 17:38:17 +0200 Subject: fdo#46808, use service constructor for ucb::SortedDynamicResultSetFactory Change-Id: I8eefa129a481e47659d488cbe57f9624d3cdb19e --- ucbhelper/source/client/content.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ucbhelper') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 95e589ff8d96..a32f3bbade32 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include #include #include @@ -658,13 +658,11 @@ Reference< XResultSet > Content::createSortedCursor( if( aDynSet.is() ) { Reference< XDynamicResultSet > aDynResult; - Reference< XMultiComponentFactory > aServiceManager = m_xImpl->getComponentContext()->getServiceManager(); - if( aServiceManager.is() ) + if( m_xImpl->getComponentContext().is() ) { - Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstanceWithContext( - "com.sun.star.ucb.SortedDynamicResultSetFactory", m_xImpl->getComponentContext()), - UNO_QUERY ); + Reference< XSortedDynamicResultSetFactory > aSortFactory = + SortedDynamicResultSetFactory::create( m_xImpl->getComponentContext()); aDynResult = aSortFactory->createSortedDynamicResultSet( aDynSet, rSortInfo, -- cgit