diff options
Diffstat (limited to 'dbaccess/source/core/dataaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/ContentHelper.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/documentcontainer.cxx | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx index 204cee0c1bdf..20a535f83cf4 100644 --- a/dbaccess/source/core/dataaccess/ContentHelper.cxx +++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx @@ -69,7 +69,7 @@ OContentHelper::OContentHelper(const Reference< XMultiServiceFactory >& _xORB ,m_aPropertyChangeListeners(m_aMutex) ,m_xParentContainer(_xParentContainer) ,m_aContext( _xORB ) - ,m_aErrorHelper( m_aContext ) + ,m_aErrorHelper( m_aContext.getUNOContext() ) ,m_pImpl(_pImpl) ,m_nCommandId(0) { diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx index 54cda9269439..311263d71965 100644 --- a/dbaccess/source/core/dataaccess/documentcontainer.cxx +++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx @@ -34,6 +34,7 @@ #include "datasource.hxx" #include <comphelper/classids.hxx> #include <comphelper/mimeconfighelper.hxx> +#include <comphelper/processfactory.hxx> #include <connectivity/sqlerror.hxx> #include "core_resource.hxx" #include "core_resource.hrc" @@ -66,8 +67,8 @@ class LocalNameApproval : public IContainerApprove ::connectivity::SQLError m_aErrors; public: - LocalNameApproval( const Reference< XMultiServiceFactory >& _rxFactory ) - :m_aErrors( ::comphelper::ComponentContext( _rxFactory ) ) + LocalNameApproval( const Reference< XComponentContext >& _rxContext ) + :m_aErrors( _rxContext ) { } virtual ~LocalNameApproval() @@ -105,7 +106,7 @@ ODocumentContainer::ODocumentContainer(const Reference< XMultiServiceFactory >& registerProperty(PROPERTY_NAME, PROPERTY_ID_NAME, PropertyAttribute::BOUND | PropertyAttribute::READONLY | PropertyAttribute::CONSTRAINED, &m_pImpl->m_aProps.aTitle, ::getCppuType(&m_pImpl->m_aProps.aTitle)); - setElementApproval( PContainerApprove( new LocalNameApproval ( _xORB ) ) ); + setElementApproval( PContainerApprove( new LocalNameApproval ( comphelper::getComponentContext(_xORB) ) ) ); } ODocumentContainer::~ODocumentContainer() |