summaryrefslogtreecommitdiff
path: root/forms/source/component/cachedrowset.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-06-03 08:34:09 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:03 +0200
commitd209e133191853f12557d879d1dcda7a0309dac6 (patch)
treef49624949123d6ae5486b817daafaf7fb7778a4b /forms/source/component/cachedrowset.cxx
parent2838b8eb5ead00780ed9ed9410abee8b8d53a9a4 (diff)
fdo#46808, Convert comphelper::ComponentContext in forms module
Change-Id: I8a9913d964633381f00c0a4885cc655805fa1974
Diffstat (limited to 'forms/source/component/cachedrowset.cxx')
-rw-r--r--forms/source/component/cachedrowset.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/forms/source/component/cachedrowset.cxx b/forms/source/component/cachedrowset.cxx
index 4a2792bdf121..8847e377a054 100644
--- a/forms/source/component/cachedrowset.cxx
+++ b/forms/source/component/cachedrowset.cxx
@@ -40,6 +40,7 @@ namespace frm
using ::com::sun::star::uno::UNO_SET_THROW;
using ::com::sun::star::uno::Exception;
using ::com::sun::star::uno::RuntimeException;
+ using ::com::sun::star::uno::XComponentContext;
using ::com::sun::star::sdbc::XConnection;
using ::com::sun::star::lang::XComponent;
using ::com::sun::star::beans::XPropertySet;
@@ -58,16 +59,14 @@ namespace frm
//====================================================================
struct CachedRowSet_Data
{
- ::comphelper::ComponentContext aContext;
OUString sCommand;
sal_Bool bEscapeProcessing;
Reference< XConnection > xConnection;
bool bStatementDirty;
- CachedRowSet_Data( const ::comphelper::ComponentContext& _rContext )
- :aContext( _rContext )
- ,sCommand()
+ CachedRowSet_Data()
+ :sCommand()
,bEscapeProcessing( sal_False )
,xConnection()
,bStatementDirty( true )
@@ -79,8 +78,8 @@ namespace frm
//= CachedRowSet
//====================================================================
//--------------------------------------------------------------------
- CachedRowSet::CachedRowSet( const ::comphelper::ComponentContext& _rContext )
- :m_pData( new CachedRowSet_Data( _rContext ) )
+ CachedRowSet::CachedRowSet()
+ :m_pData( new CachedRowSet_Data )
{
}
@@ -176,7 +175,7 @@ namespace frm
{
try
{
- m_pData.reset( new CachedRowSet_Data( m_pData->aContext ) );
+ m_pData.reset( new CachedRowSet_Data );
}
catch( const Exception& )
{