diff options
author | David Tardon <dtardon@redhat.com> | 2012-11-06 08:15:47 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-11-06 08:15:47 +0100 |
commit | efe0cbe6da64b2e150331112becade0ac3a53555 (patch) | |
tree | 459282eb60365de08fc8ead7b465cf19e1ef47b1 /connectivity | |
parent | fdo#46808 adapt GIO provider (diff) | |
download | core-efe0cbe6da64b2e150331112becade0ac3a53555.tar.gz core-efe0cbe6da64b2e150331112becade0ac3a53555.zip |
fdo#46808 adapt evoab driver
Change-Id: I4debeba1b9637fdaaa369a28c9a6c98a4729d76e
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDriver.hxx | 5 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NStatement.cxx | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/connectivity/source/drivers/evoab2/NDriver.hxx b/connectivity/source/drivers/evoab2/NDriver.hxx index e255a32fa987..a6bcf2ed85e2 100644 --- a/connectivity/source/drivers/evoab2/NDriver.hxx +++ b/connectivity/source/drivers/evoab2/NDriver.hxx @@ -22,6 +22,7 @@ #include <com/sun/star/sdbc/XDriver.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <comphelper/processfactory.hxx> #include <cppuhelper/compbase2.hxx> #include "connectivity/CommonTools.hxx" #include <osl/module.h> @@ -79,7 +80,9 @@ namespace connectivity public: const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > - & getMSFactory(void) const { return m_xFactory; } + & getMSFactory(void) const { return m_xFactory; } + ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > + getComponentContext( ) const { return comphelper::getComponentContext( m_xFactory ); } // static methods static sal_Bool acceptsURL_Stat( const ::rtl::OUString& url ); diff --git a/connectivity/source/drivers/evoab2/NStatement.cxx b/connectivity/source/drivers/evoab2/NStatement.cxx index 6c0de19cceb3..bd377e5ffb55 100644 --- a/connectivity/source/drivers/evoab2/NStatement.cxx +++ b/connectivity/source/drivers/evoab2/NStatement.cxx @@ -55,7 +55,7 @@ OCommonStatement::OCommonStatement(OEvoabConnection* _pConnection) , m_xResultSet(NULL) , m_pResultSet(NULL) , m_pConnection(_pConnection) - , m_aParser(_pConnection->getDriver().getMSFactory()) + , m_aParser(_pConnection->getDriver().getComponentContext()) , m_aSQLIterator( _pConnection, _pConnection->createCatalog()->getTables(), m_aParser, NULL ) , m_pParseTree(NULL) , m_nMaxFieldSize(0) |