summaryrefslogtreecommitdiff
path: root/connectivity
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 /connectivity
parentd5104498bbcce24d0b8f546b183245373768faa4 (diff)
fdo#46808, use service constructor for ucb::SortedDynamicResultSetFactory
Change-Id: I8eefa129a481e47659d488cbe57f9624d3cdb19e
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FDatabaseMetaData.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
index 86ea5f2b1c9c..703ee24bbca0 100644
--- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
@@ -25,7 +25,7 @@
#include <com/sun/star/ucb/SearchRecursion.hpp>
#include <com/sun/star/ucb/SearchCommandArgument.hpp>
#include <com/sun/star/ucb/UniversalContentBroker.hpp>
-#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
+#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <tools/urlobj.hxx>
#include "file/FDriver.hxx"
@@ -201,8 +201,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xRef;
Reference<XDynamicResultSet> xContent = m_pConnection->getDir();
- Reference < XSortedDynamicResultSetFactory > xSRSFac(
- m_pConnection->getDriver()->getFactory()->createInstance( ::rtl::OUString("com.sun.star.ucb.SortedDynamicResultSetFactory") ), UNO_QUERY );
+ Reference < XSortedDynamicResultSetFactory > xSRSFac =
+ SortedDynamicResultSetFactory::create( comphelper::getComponentContext( m_pConnection->getDriver()->getFactory() ) );
Sequence< NumberedSortingInfo > aSortInfo( 1 );
NumberedSortingInfo* pInfo = aSortInfo.getArray();