summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-21 11:23:32 +0200
committerNoel Grandin <noel@peralex.com>2012-12-21 11:23:32 +0200
commit1b718682ade370c06b2d9539084ab889905ab187 (patch)
treee61d82edfa5590197f9e54526cfc0e7f4f909899 /connectivity
parent53990ff94787d08dfc8cd1518120eb201836003f (diff)
Fix MACAB driver for my UNO changes
Change-Id: Ib513a633e3c887f310711c44d4155be4f998a702
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/macab/MacabDriver.cxx8
-rw-r--r--connectivity/source/drivers/macab/MacabDriver.hxx3
2 files changed, 6 insertions, 5 deletions
diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx
index a2adc78d11b2..7365e3d4c995 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -23,7 +23,7 @@
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/lang/NullPointerException.hpp>
-#include <com/sun/star/frame/XDesktop.hpp>
+#include <com/sun/star/frame/Desktop.hpp>
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
#include "resource/macab_res.hrc"
@@ -41,7 +41,7 @@ using namespace connectivity::macab;
// = MacabImplModule
// =======================================================================
// --------------------------------------------------------------------------------
-MacabImplModule::MacabImplModule( const Reference< XMultiServiceFactory >& _rxContext )
+MacabImplModule::MacabImplModule()
:m_bAttemptedLoadModule(false)
,m_hConnectorModule(NULL)
,m_pConnectionFactoryFunc(NULL)
@@ -173,7 +173,7 @@ MacabDriver::MacabDriver(
const Reference< ::com::sun::star::uno::XComponentContext >& _rxContext)
: MacabDriver_BASE(m_aMutex),
m_xContext(_rxContext),
- m_aImplModule(_rxFactory)
+ m_aImplModule()
{
if ( !m_xContext.is() )
throw NullPointerException();
@@ -181,7 +181,7 @@ MacabDriver::MacabDriver(
osl_atomic_increment( &m_refCount );
try
{
- Reference< XDesktop2 > xDesktop = frame::Desktop::create( m_xContext );
+ Reference< XDesktop2 > xDesktop = Desktop::create( m_xContext );
xDesktop->addTerminateListener( this );
}
catch( const Exception& )
diff --git a/connectivity/source/drivers/macab/MacabDriver.hxx b/connectivity/source/drivers/macab/MacabDriver.hxx
index d1d6fe24515b..2f08b685c2e2 100644
--- a/connectivity/source/drivers/macab/MacabDriver.hxx
+++ b/connectivity/source/drivers/macab/MacabDriver.hxx
@@ -23,6 +23,7 @@
#include <com/sun/star/sdbc/XDriver.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/frame/XTerminateListener.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/compbase3.hxx>
#include <osl/module.h>
@@ -122,7 +123,7 @@ namespace connectivity
// MacabConnection objects for this Driver
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
m_xContext; // the multi-service factory
- MacabImplModule m_aImplModule;
+ MacabImplModule m_aImplModule;
public:
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception );