diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-21 16:22:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-22 15:20:03 +0200 |
commit | 7298a2b0c721004b09a0fd3c7e287d655f42286b (patch) | |
tree | f897e317791f3946845e8cea6145ac2683de5993 /connectivity/source/drivers/dbase/DDriver.cxx | |
parent | 8c249489120c9ef0a25436d16c38cbe3756adff1 (diff) |
fdo#46808, Convert XMultiServiceFactory to XComponentContext
Change-Id: I3a74d4edaa3ff3c2498c3db2720b0e4e5305c2e4
Diffstat (limited to 'connectivity/source/drivers/dbase/DDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/dbase/DDriver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DDriver.cxx b/connectivity/source/drivers/dbase/DDriver.cxx index 02837f09ef2e..5711503bf7d6 100644 --- a/connectivity/source/drivers/dbase/DDriver.cxx +++ b/connectivity/source/drivers/dbase/DDriver.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/lang/DisposedException.hpp> #include "connectivity/dbexception.hxx" #include "resource/dbase_res.hrc" +#include "comphelper/processfactory.hxx" using namespace connectivity::dbase; using namespace connectivity::file; @@ -48,7 +49,7 @@ OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException) //------------------------------------------------------------------ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::dbase::ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception ) { - return *(new ODriver(_rxFactory)); + return *(new ODriver( comphelper::getComponentContext(_rxFactory) )); } // -------------------------------------------------------------------------------- Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException) |