Tag: cws_dev300_odbmacros3 User: fs Date: 2008-07-30 20:48:50+0000 Modified: dba/dbaccess/inc/documentcontroller.hxx
Log: #i76128# swap is bad, as it does unnecessary calls to dis/connectController File Changes: Directory: /dba/dbaccess/inc/ ============================= File [changed]: documentcontroller.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/inc/documentcontroller.hxx?r1=1.3.2.1&r2=1.3.2.2 Delta lines: +2 -7 ------------------- --- documentcontroller.hxx 2008-07-28 06:25:14+0000 1.3.2.1 +++ documentcontroller.hxx 2008-07-30 20:48:47+0000 1.3.2.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: documentcontroller.hxx,v $ - * $Revision: 1.3.2.1 $ + * $Revision: 1.3.2.2 $ * * This file is part of OpenOffice.org. * @@ -104,10 +104,6 @@ */ inline bool empty() const { return !m_xController.is(); } - /** exchanges the content of <code>this</code> and the given ->ModelControllerConnector instance - */ - void swap( ModelControllerConnector& _rSwapWith ); - /** clears the object The controller is disconnected from the model, and references to the model and the controller @@ -115,8 +111,7 @@ */ inline void clear() { - ModelControllerConnector aEmpty; - swap( aEmpty ); + connect( NULL, NULL ); } public: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
