summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-07 17:38:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-28 10:59:31 +0100
commit90a27e2eb905c1a4203a4a652315c16a60d8aa26 (patch)
treeee8ea6a1e09ebeebcada0bff433f3bf8f7770bf1 /svtools
parentd5104498bbcce24d0b8f546b183245373768faa4 (diff)
fdo#46808, use service constructor for ucb::SortedDynamicResultSetFactory
Change-Id: I8eefa129a481e47659d488cbe57f9624d3cdb19e
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/inettbc.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index c3408578419e..6c0ce2a16bf5 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -34,7 +34,7 @@
#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
#include <com/sun/star/ucb/XProgressHandler.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
-#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
+#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <rtl/instance.hxx>
@@ -345,8 +345,6 @@ void SvtMatchContext_Impl::ReadFolder( const String& rURL,
try
{
- uno::Reference< XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory();
-
Content aCnt( aFolderObj.GetMainURL( INetURLObject::NO_DECODE ),
new ::ucbhelper::CommandEnvironment( uno::Reference< XInteractionHandler >(),
uno::Reference< XProgressHandler >() ),
@@ -367,8 +365,8 @@ void SvtMatchContext_Impl::ReadFolder( const String& rURL,
xDynResultSet = aCnt.createDynamicCursor( aProps, eInclude );
uno::Reference < XAnyCompareFactory > xCompare;
- uno::Reference < XSortedDynamicResultSetFactory > xSRSFac(
- xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SortedDynamicResultSetFactory") ) ), UNO_QUERY );
+ uno::Reference < XSortedDynamicResultSetFactory > xSRSFac =
+ SortedDynamicResultSetFactory::create( ::comphelper::getProcessComponentContext() );
Sequence< NumberedSortingInfo > aSortInfo( 2 );
NumberedSortingInfo* pInfo = aSortInfo.getArray();