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 /dbaccess/source/sdbtools/connection/objectnames.cxx | |
parent | 9fc4553b6433fbb6565a5b946c4256c0bfe345f1 (diff) |
fdo#46808, Convert connectivity::SQLError to use XComponentContext...
...instead of comphelper::ComponentContext.
Change-Id: I40384c2d7cfcabd06506321d686dd8e7c7c5f266
Diffstat (limited to 'dbaccess/source/sdbtools/connection/objectnames.cxx')
-rw-r--r-- | dbaccess/source/sdbtools/connection/objectnames.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/sdbtools/connection/objectnames.cxx b/dbaccess/source/sdbtools/connection/objectnames.cxx index a4c1e5e77df9..edad066c1c1a 100644 --- a/dbaccess/source/sdbtools/connection/objectnames.cxx +++ b/dbaccess/source/sdbtools/connection/objectnames.cxx @@ -108,7 +108,7 @@ namespace sdbtools if ( validateName( _rName ) ) return; - ::connectivity::SQLError aErrors( m_aContext ); + ::connectivity::SQLError aErrors( m_aContext.getUNOContext() ); SQLException aError( aErrors.getSQLException( ErrorCondition::DB_OBJECT_NAME_IS_USED, m_xConnection, _rName ) ); ::dbtools::DatabaseMetaData aMeta( m_xConnection ); @@ -162,7 +162,7 @@ namespace sdbtools if ( validateName( _rName ) ) return; - ::connectivity::SQLError aErrors( m_aContext ); + ::connectivity::SQLError aErrors( m_aContext.getUNOContext() ); aErrors.raiseException( ErrorCondition::DB_INVALID_SQL_NAME, m_xConnection, _rName ); } }; @@ -211,7 +211,7 @@ namespace sdbtools ::connectivity::ErrorCondition nErrorCondition = validateName_getErrorCondition( _rName ); if ( nErrorCondition != 0 ) { - ::connectivity::SQLError aErrors( m_aContext ); + ::connectivity::SQLError aErrors( m_aContext.getUNOContext() ); aErrors.raiseException( nErrorCondition, m_xConnection ); } } |