summaryrefslogtreecommitdiff
path: root/ucb
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 /ucb
parentd5104498bbcce24d0b8f546b183245373768faa4 (diff)
fdo#46808, use service constructor for ucb::SortedDynamicResultSetFactory
Change-Id: I8eefa129a481e47659d488cbe57f9624d3cdb19e
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cacheddynamicresultsetstub.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/ucb/source/cacher/cacheddynamicresultsetstub.cxx b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
index f85f09d46d5f..9f83f3b144a5 100644
--- a/ucb/source/cacher/cacheddynamicresultsetstub.cxx
+++ b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
@@ -22,8 +22,9 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <cachedcontentresultsetstub.hxx>
#include <com/sun/star/ucb/ContentResultSetCapability.hpp>
-#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
+#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp>
#include <osl/diagnose.h>
+#include <comphelper/processfactory.hxx>
using namespace com::sun::star::lang;
using namespace com::sun::star::sdbc;
@@ -202,9 +203,7 @@ void SAL_CALL CachedDynamicResultSetStubFactory
Reference< XSortedDynamicResultSetFactory > xSortFactory;
try
{
- xSortFactory = Reference< XSortedDynamicResultSetFactory >(
- m_xSMgr->createInstance( OUString( "com.sun.star.ucb.SortedDynamicResultSetFactory" ) ),
- UNO_QUERY );
+ xSortFactory = SortedDynamicResultSetFactory::create( comphelper::getComponentContext(m_xSMgr) );
}
catch ( Exception const & )
{