diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/macab/MacabDriver.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/drivers/macab/MacabDriver.hxx | 3 |
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 ); |