diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-07 17:38:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-28 10:59:31 +0100 |
commit | 90a27e2eb905c1a4203a4a652315c16a60d8aa26 (patch) | |
tree | ee8ea6a1e09ebeebcada0bff433f3bf8f7770bf1 /ucbhelper | |
parent | d5104498bbcce24d0b8f546b183245373768faa4 (diff) |
fdo#46808, use service constructor for ucb::SortedDynamicResultSetFactory
Change-Id: I8eefa129a481e47659d488cbe57f9624d3cdb19e
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
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 <com/sun/star/ucb/XContentProvider.hpp> #include <com/sun/star/ucb/XContentProviderManager.hpp> #include <com/sun/star/ucb/XDynamicResultSet.hpp> -#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp> +#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp> #include <com/sun/star/ucb/UniversalContentBroker.hpp> #include <com/sun/star/ucb/XUniversalContentBroker.hpp> #include <com/sun/star/beans/XPropertySetInfo.hpp> @@ -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, |