diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-03 13:55:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-10 08:05:49 +0200 |
commit | b9a4a0b9658015a0d55c42de1f5e56941e20d268 (patch) | |
tree | d5d377f24ee3377fdf6f912415b382b2d3e85070 /connectivity/source/drivers/mork/MConnection.cxx | |
parent | 9fc4553b6433fbb6565a5b946c4256c0bfe345f1 (diff) |
fdo#46808, Convert connectivity::SQLError to use XComponentContext...
...instead of comphelper::ComponentContext.
Change-Id: I40384c2d7cfcabd06506321d686dd8e7c7c5f266
Diffstat (limited to 'connectivity/source/drivers/mork/MConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/mork/MConnection.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index 47525d2f946b..9c9c8edfbfd3 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -28,6 +28,7 @@ #include <com/sun/star/sdbc/TransactionIsolation.hpp> #include <comphelper/officeresourcebundle.hxx> +#include <comphelper/processfactory.hxx> using namespace dbtools; @@ -382,7 +383,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer if ( _rError.getErrorCondition() != 0 ) { - SQLError aErrorHelper( getDriver()->getFactory() ); + SQLError aErrorHelper( comphelper::getComponentContext(getDriver()->getFactory()) ); ::rtl::OUString sParameter( _rError.getParameter() ); if ( !sParameter.isEmpty() ) aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext, sParameter ); |