summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-27 11:45:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-28 13:06:18 +0100
commit38cc919efb965e7982d23d5b1c91a639cc2c6fdd (patch)
tree3586b24e5d14c7612dae8da02cdd04ad7b2ec112 /forms
parent7470cc532fe408dc9d8735cde0e2eb5bb62fd69c (diff)
fdo#46808, use service constructor for sdbc::ConnectionPool
Change-Id: Id12226af5e537b1eeacbb062ad937a3551e245c0
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 434b4ef94587..99f17d4a857c 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -292,7 +292,7 @@ ODatabaseForm::ODatabaseForm(const Reference<XMultiServiceFactory>& _rxFactory)
,m_aPropertyBagHelper( *this )
,m_pAggregatePropertyMultiplexer(NULL)
,m_pGroupManager( NULL )
- ,m_aParameterManager( m_aMutex, _rxFactory )
+ ,m_aParameterManager( m_aMutex, comphelper::getComponentContext(_rxFactory) )
,m_aFilterManager( _rxFactory )
,m_pLoadTimer(NULL)
,m_pThread(NULL)
@@ -332,7 +332,7 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource )
,m_aPropertyBagHelper( *this )
,m_pAggregatePropertyMultiplexer( NULL )
,m_pGroupManager( NULL )
- ,m_aParameterManager( m_aMutex, _cloneSource.m_xServiceFactory )
+ ,m_aParameterManager( m_aMutex, comphelper::getComponentContext(_cloneSource.m_xServiceFactory) )
,m_aFilterManager( _cloneSource.m_xServiceFactory )
,m_pLoadTimer( NULL )
,m_pThread( NULL )
@@ -2844,7 +2844,7 @@ sal_Bool ODatabaseForm::implEnsureConnection()
{
Reference< XConnection > xConnection = connectRowset(
Reference<XRowSet> (m_xAggregate, UNO_QUERY),
- m_xServiceFactory,
+ comphelper::getComponentContext(m_xServiceFactory),
sal_True // set a calculated connection as ActiveConnection
);
return xConnection.is();