From a3b9202b308717c9bc6bcf8c1a6828977f80b50f Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 25 Jun 2008 12:02:05 +0000 Subject: INTEGRATION: CWS dba30d (1.31.30); FILE MERGED 2008/05/29 11:27:01 fs 1.31.30.1: during #i80943#: refactoring: IController now passed around as reference, not as pointer --- dbaccess/source/ui/tabledesign/TableDesignView.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx index 9d4d6892374e..c1b6ddb9978c 100644 --- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx +++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TableDesignView.cxx,v $ - * $Revision: 1.31 $ + * $Revision: 1.32 $ * * This file is part of OpenOffice.org. * @@ -224,10 +224,10 @@ DBG_NAME(OTableDesignView); //------------------------------------------------------------------------------ OTableDesignView::OTableDesignView( Window* pParent, const Reference< XMultiServiceFactory >& _rxOrb, - OTableController* _pController + OTableController& _rController ) : - ODataView( pParent ,_pController,_rxOrb ) - ,m_pController( _pController ) + ODataView( pParent, _rController,_rxOrb ) + ,m_rController( _rController ) ,m_eChildFocus(NONE) { DBG_CTOR(OTableDesignView,NULL); @@ -254,8 +254,6 @@ OTableDesignView::~OTableDesignView() ::std::auto_ptr aTemp(m_pWin); m_pWin = NULL; } - - m_pController = NULL; } // ----------------------------------------------------------------------------- @@ -285,7 +283,7 @@ void OTableDesignView::resizeDocumentView(Rectangle& _rPlayground) //------------------------------------------------------------------------------ IMPL_LINK( OTableDesignView, SwitchHdl, Accelerator*, /*pAcc*/ ) { - if( getController()->isReadOnly() ) + if( getController().isReadOnly() ) return 0; if( GetDescWin()->HasChildPathFocus() ) -- cgit