summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/calc
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/calc')
-rw-r--r--connectivity/source/drivers/calc/CConnection.cxx2
-rw-r--r--connectivity/source/drivers/calc/CDriver.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/calc/CConnection.cxx b/connectivity/source/drivers/calc/CConnection.cxx
index bae573fcaf28..04e6cd3555cc 100644
--- a/connectivity/source/drivers/calc/CConnection.cxx
+++ b/connectivity/source/drivers/calc/CConnection.cxx
@@ -128,7 +128,7 @@ Reference< XSpreadsheetDocument> OCalcConnection::acquireDoc()
aArgs[nPos].Value <<= m_sPassword;
}
- Reference< XDesktop2 > xDesktop = Desktop::create( comphelper::getComponentContext(getDriver()->getFactory()) );
+ Reference< XDesktop2 > xDesktop = Desktop::create( getDriver()->getComponentContext() );
Reference< XComponent > xComponent;
Any aLoaderException;
try
diff --git a/connectivity/source/drivers/calc/CDriver.cxx b/connectivity/source/drivers/calc/CDriver.cxx
index c66fbe82e9fa..40dcf3af9061 100644
--- a/connectivity/source/drivers/calc/CDriver.cxx
+++ b/connectivity/source/drivers/calc/CDriver.cxx
@@ -23,6 +23,7 @@
#include "connectivity/dbexception.hxx"
#include "resource/sharedresources.hxx"
#include "resource/calc_res.hrc"
+#include "comphelper/processfactory.hxx"
using namespace connectivity::calc;
using namespace connectivity::file;
@@ -54,7 +55,7 @@ OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException)
connectivity::calc::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,