diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2014-03-02 09:46:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-03 09:17:33 -0600 |
commit | ff71f4e55c32f903fc4f988cc3e726d0c691841e (patch) | |
tree | 2a700842ce113a4b3bb7c717fabc8abb720b4fa1 /extensions | |
parent | 88c3b0dfc261855e1464fc196e3da66dfa14c9dc (diff) |
EXTENSIONS : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.
Change-Id: Ied33afa8b32149b6b7b1c0725167349e817d6c89
Reviewed-on: https://gerrit.libreoffice.org/8407
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
21 files changed, 0 insertions, 79 deletions
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index dacf0c54dc55..712372391161 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -51,12 +51,8 @@ namespace pcr namespace PropertyLineElement = ::com::sun::star::inspection::PropertyLineElement; - //= OBrowserLine - DBG_NAME(OBrowserLine) - - OBrowserLine::OBrowserLine( const OUString& _rEntryName, Window* pParent ) :m_sEntryName( _rEntryName ) ,m_aFtTitle(pParent) @@ -70,7 +66,6 @@ namespace pcr ,m_bIndentTitle( false ) ,m_bReadOnly( false ) { - DBG_CTOR(OBrowserLine,NULL); m_aFtTitle.Show(); } @@ -79,8 +74,6 @@ namespace pcr { implHideBrowseButton( true, false ); implHideBrowseButton( false, false ); - - DBG_DTOR(OBrowserLine,NULL); } diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx index 0bdb27b73299..e93a5055bc16 100644 --- a/extensions/source/propctrlr/browserlistbox.cxx +++ b/extensions/source/propctrlr/browserlistbox.cxx @@ -346,7 +346,6 @@ namespace pcr //= OBrowserListBox - DBG_NAME(OBrowserListBox) OBrowserListBox::OBrowserListBox( Window* pParent, WinBits nWinStyle) :Control(pParent, nWinStyle| WB_CLIPCHILDREN) @@ -362,7 +361,6 @@ namespace pcr ,m_bUpdate(sal_True) ,m_pControlContextImpl( new PropertyControlContext_Impl( *this ) ) { - DBG_CTOR(OBrowserListBox,NULL); ListBox aListBox(this,WB_DROPDOWN); aListBox.SetPosSizePixel(Point(0,0),Size(100,100)); @@ -391,7 +389,6 @@ namespace pcr Hide(); Clear(); - DBG_DTOR(OBrowserListBox,NULL); } diff --git a/extensions/source/propctrlr/browserview.cxx b/extensions/source/propctrlr/browserview.cxx index 3a8c732d13d9..8da7baaaf3d3 100644 --- a/extensions/source/propctrlr/browserview.cxx +++ b/extensions/source/propctrlr/browserview.cxx @@ -35,14 +35,11 @@ namespace pcr //= class OPropertyBrowserView - DBG_NAME(OPropertyBrowserView) OPropertyBrowserView::OPropertyBrowserView(Window* _pParent, WinBits nBits) :Window(_pParent, nBits | WB_3DLOOK) ,m_nActivePage(0) { - DBG_CTOR(OPropertyBrowserView,NULL); - m_pPropBox = new OPropertyEditor( this ); m_pPropBox->SetHelpId(HID_FM_PROPDLG_TABCTR); m_pPropBox->setPageActivationHandler(LINK(this, OPropertyBrowserView, OnPageActivation)); @@ -71,7 +68,6 @@ namespace pcr m_pPropBox = NULL; } - DBG_DTOR(OPropertyBrowserView, NULL); } diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx index 15482afa8b33..158aa9503430 100644 --- a/extensions/source/propctrlr/buttonnavigationhandler.cxx +++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx @@ -46,12 +46,10 @@ namespace pcr //= ButtonNavigationHandler - DBG_NAME( ButtonNavigationHandler ) ButtonNavigationHandler::ButtonNavigationHandler( const Reference< XComponentContext >& _rxContext ) :ButtonNavigationHandler_Base( _rxContext ) { - DBG_CTOR( ButtonNavigationHandler, NULL ); m_xSlaveHandler = css::form::inspection::FormComponentPropertyHandler::create( m_xContext ); } @@ -59,7 +57,6 @@ namespace pcr ButtonNavigationHandler::~ButtonNavigationHandler( ) { - DBG_DTOR( ButtonNavigationHandler, NULL ); } diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx index 1eba11412570..745a7afbd8d4 100644 --- a/extensions/source/propctrlr/cellbindinghandler.cxx +++ b/extensions/source/propctrlr/cellbindinghandler.cxx @@ -51,13 +51,11 @@ namespace pcr //= CellBindingPropertyHandler - DBG_NAME( CellBindingPropertyHandler ) CellBindingPropertyHandler::CellBindingPropertyHandler( const Reference< XComponentContext >& _rxContext ) :CellBindingPropertyHandler_Base( _rxContext ) ,m_pCellExchangeConverter( new DefaultEnumRepresentation( *m_pInfoService, ::getCppuType( static_cast< sal_Int16* >( NULL ) ), PROPERTY_ID_CELL_EXCHANGE_TYPE ) ) { - DBG_CTOR( CellBindingPropertyHandler, NULL ); } @@ -88,7 +86,6 @@ namespace pcr CellBindingPropertyHandler::~CellBindingPropertyHandler( ) { - DBG_DTOR( CellBindingPropertyHandler, NULL ); } diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx index c976063322dd..9087088b6052 100644 --- a/extensions/source/propctrlr/editpropertyhandler.cxx +++ b/extensions/source/propctrlr/editpropertyhandler.cxx @@ -49,18 +49,15 @@ namespace pcr //= EditPropertyHandler - DBG_NAME( EditPropertyHandler ) EditPropertyHandler::EditPropertyHandler( const Reference< XComponentContext >& _rxContext ) :EditPropertyHandler_Base( _rxContext ) { - DBG_CTOR( EditPropertyHandler, NULL ); } EditPropertyHandler::~EditPropertyHandler( ) { - DBG_DTOR( EditPropertyHandler, NULL ); } diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx index e663657c09d8..f2bd0ab82575 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.cxx +++ b/extensions/source/propctrlr/eformspropertyhandler.cxx @@ -56,19 +56,16 @@ namespace pcr //= EFormsPropertyHandler - DBG_NAME( EFormsPropertyHandler ) EFormsPropertyHandler::EFormsPropertyHandler( const Reference< XComponentContext >& _rxContext ) :EFormsPropertyHandler_Base( _rxContext ) ,m_bSimulatingModelChange( false ) { - DBG_CTOR( EFormsPropertyHandler, NULL ); } EFormsPropertyHandler::~EFormsPropertyHandler( ) { - DBG_DTOR( EFormsPropertyHandler, NULL ); } diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 71a92c51c0d0..b1424dd12027 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -355,18 +355,15 @@ namespace pcr ScriptEventDescriptor impl_getDescriptor_throw( const OUString& _rEventName ) const; }; - DBG_NAME( EventHolder ) EventHolder::EventHolder() { - DBG_CTOR( EventHolder, NULL ); } EventHolder::~EventHolder() { m_aEventNameAccess.clear(); m_aEventIndexAccess.clear(); - DBG_DTOR( EventHolder, NULL ); } void EventHolder::addEvent( EventId _nId, const OUString& _rEventName, const ScriptEventDescriptor& _rScriptEvent ) @@ -456,7 +453,6 @@ namespace pcr return !m_aEventNameAccess.empty(); } - DBG_NAME( EventHandler ) EventHandler::EventHandler( const Reference< XComponentContext >& _rxContext ) :EventHandler_Base( m_aMutex ) @@ -466,12 +462,10 @@ namespace pcr ,m_bIsDialogElement( false ) ,m_nGridColumnType( -1 ) { - DBG_CTOR( EventHandler, NULL ); } EventHandler::~EventHandler() { - DBG_DTOR( EventHandler, NULL ); } OUString SAL_CALL EventHandler::getImplementationName( ) throw (RuntimeException, std::exception) diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 66c145181d14..79d0c1deaef9 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -135,7 +135,6 @@ namespace pcr //= FormComponentPropertyHandler - DBG_NAME( FormComponentPropertyHandler ) #define PROPERTY_ID_ROWSET 1 FormComponentPropertyHandler::FormComponentPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -148,14 +147,12 @@ namespace pcr ,m_bHaveCommand( false ) ,m_nClassId( 0 ) { - DBG_CTOR( FormComponentPropertyHandler, NULL ); registerProperty(PROPERTY_ROWSET,PROPERTY_ID_ROWSET,0,&m_xRowSet,::getCppuType(&m_xRowSet)); } FormComponentPropertyHandler::~FormComponentPropertyHandler() { - DBG_DTOR( FormComponentPropertyHandler, NULL ); } IMPLEMENT_FORWARD_XINTERFACE2(FormComponentPropertyHandler,FormComponentPropertyHandler_Base,::comphelper::OPropertyContainer) diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx index 1cac106932bd..7a3092a9056e 100644 --- a/extensions/source/propctrlr/formgeometryhandler.cxx +++ b/extensions/source/propctrlr/formgeometryhandler.cxx @@ -253,12 +253,10 @@ namespace pcr //= FormGeometryHandler - implementation - DBG_NAME( FormGeometryHandler ) FormGeometryHandler::FormGeometryHandler( const Reference< XComponentContext >& _rxContext ) :FormGeometryHandler_Base( _rxContext ) { - DBG_CTOR( FormGeometryHandler, NULL ); } @@ -270,7 +268,6 @@ namespace pcr dispose(); } - DBG_DTOR( FormGeometryHandler, NULL ); } diff --git a/extensions/source/propctrlr/formmetadata.cxx b/extensions/source/propctrlr/formmetadata.cxx index 10e9774d4f55..3d50429e7589 100644 --- a/extensions/source/propctrlr/formmetadata.cxx +++ b/extensions/source/propctrlr/formmetadata.cxx @@ -578,7 +578,6 @@ namespace pcr //= DefaultEnumRepresentation - DBG_NAME( DefaultEnumRepresentation ) DefaultEnumRepresentation::DefaultEnumRepresentation( const IPropertyInfoService& _rInfo, const Type& _rType, sal_Int32 _nPropertyId ) :m_refCount( 0 ) @@ -586,13 +585,11 @@ namespace pcr ,m_aType( _rType ) ,m_nPropertyId( _nPropertyId ) { - DBG_CTOR( DefaultEnumRepresentation, NULL ); } DefaultEnumRepresentation::~DefaultEnumRepresentation() { - DBG_DTOR( DefaultEnumRepresentation, NULL ); } diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index 5444d095eb5d..4a0c4bc244a9 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -218,7 +218,6 @@ namespace pcr void impl_dispatch_throw( const OUString& _rURL ); }; - DBG_NAME( UrlClickHandler ) UrlClickHandler::UrlClickHandler( const Reference<XComponentContext>& _rContext, const Reference< XHyperlinkControl >& _rxControl ) :m_xContext( _rContext ) @@ -233,12 +232,10 @@ namespace pcr osl_atomic_decrement( &m_refCount ); OSL_ENSURE( m_refCount > 0, "UrlClickHandler::UrlClickHandler: leaking!" ); - DBG_CTOR( UrlClickHandler, NULL ); } UrlClickHandler::~UrlClickHandler() { - DBG_DTOR( UrlClickHandler, NULL ); } void SAL_CALL UrlClickHandler::actionPerformed( const ActionEvent& rEvent ) throw (RuntimeException, std::exception) @@ -277,7 +274,6 @@ namespace pcr xDispatch->dispatch( aURL, aDispatchArgs ); } - DBG_NAME( GenericPropertyHandler ) GenericPropertyHandler::GenericPropertyHandler( const Reference< XComponentContext >& _rxContext ) :GenericPropertyHandler_Base( m_aMutex ) @@ -285,14 +281,11 @@ namespace pcr ,m_aPropertyListeners( m_aMutex ) ,m_bPropertyMapInitialized( false ) { - DBG_CTOR( GenericPropertyHandler, NULL ); - m_xTypeConverter = Converter::create(_rxContext); } GenericPropertyHandler::~GenericPropertyHandler() { - DBG_DTOR( GenericPropertyHandler, NULL ); } OUString SAL_CALL GenericPropertyHandler::getImplementationName( ) throw (RuntimeException, std::exception) diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index d7525c75eede..39e8e34564b4 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -81,7 +81,6 @@ namespace pcr //= OPropertyBrowserController - DBG_NAME(OPropertyBrowserController) OPropertyBrowserController::OPropertyBrowserController( const Reference< XComponentContext >& _rxContext ) :m_xContext(_rxContext) @@ -93,7 +92,6 @@ namespace pcr ,m_bConstructed( false ) ,m_bBindingIntrospectee( false ) { - DBG_CTOR(OPropertyBrowserController,NULL); } @@ -102,7 +100,6 @@ namespace pcr // stop listening for property changes acquire(); stopInspection( true ); - DBG_DTOR(OPropertyBrowserController,NULL); } diff --git a/extensions/source/propctrlr/propcontroller.hxx b/extensions/source/propctrlr/propcontroller.hxx index d097aebb36d4..36443e9d22aa 100644 --- a/extensions/source/propctrlr/propcontroller.hxx +++ b/extensions/source/propctrlr/propcontroller.hxx @@ -74,7 +74,6 @@ namespace pcr const char* CheckPropertyBrowserInvariants( const void* pVoid ); // for dignostics with DBG_CHKTHIS #endif - DBG_NAMEEX( OPropertyBrowserController ) //= OPropertyBrowserController diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx index 43ad1b702dcd..e5aa5f24d5d5 100644 --- a/extensions/source/propctrlr/propertyeditor.cxx +++ b/extensions/source/propctrlr/propertyeditor.cxx @@ -40,7 +40,6 @@ namespace pcr // class OPropertyEditor - DBG_NAME(OPropertyEditor) OPropertyEditor::OPropertyEditor( Window* pParent, WinBits nWinStyle) :Control(pParent, nWinStyle) @@ -50,7 +49,6 @@ namespace pcr ,m_nMinHelpLines( 0 ) ,m_nMaxHelpLines( 0 ) { - DBG_CTOR(OPropertyEditor,NULL); m_aTabControl.Show(); m_aTabControl.SetDeactivatePageHdl(LINK(this, OPropertyEditor, OnPageDeactivate)); @@ -64,7 +62,6 @@ namespace pcr { Hide(); ClearAll(); - DBG_DTOR(OPropertyEditor,NULL); } diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx index fc313058bb5e..1aac61fc8baa 100644 --- a/extensions/source/propctrlr/propertyhandler.cxx +++ b/extensions/source/propctrlr/propertyhandler.cxx @@ -50,7 +50,6 @@ namespace pcr using namespace ::com::sun::star::inspection; using namespace ::comphelper; - DBG_NAME( PropertyHandler ) PropertyHandler::PropertyHandler( const Reference< XComponentContext >& _rxContext ) :PropertyHandler_Base( m_aMutex ) @@ -59,14 +58,12 @@ namespace pcr ,m_xContext( _rxContext ) ,m_pInfoService ( new OPropertyInfoService ) { - DBG_CTOR( PropertyHandler, NULL ); m_xTypeConverter = Converter::create(_rxContext); } PropertyHandler::~PropertyHandler() { - DBG_DTOR( PropertyHandler, NULL ); } void SAL_CALL PropertyHandler::inspect( const Reference< XInterface >& _rxIntrospectee ) throw (RuntimeException, NullPointerException, std::exception) diff --git a/extensions/source/propctrlr/selectlabeldialog.cxx b/extensions/source/propctrlr/selectlabeldialog.cxx index bf6950794cf3..22772136b5b0 100644 --- a/extensions/source/propctrlr/selectlabeldialog.cxx +++ b/extensions/source/propctrlr/selectlabeldialog.cxx @@ -46,7 +46,6 @@ namespace pcr // OSelectLabelDialog - DBG_NAME(OSelectLabelDialog) OSelectLabelDialog::OSelectLabelDialog( Window* pParent, Reference< XPropertySet > _xControlModel ) :ModalDialog(pParent, PcrRes(RID_DLG_SELECTLABELCONTROL)) @@ -62,8 +61,6 @@ namespace pcr ,m_pLastSelected(NULL) ,m_bHaveAssignableControl(sal_False) { - DBG_CTOR(OSelectLabelDialog,NULL); - // initialize the TreeListBox m_aControlTree.SetSelectionMode( SINGLE_SELECTION ); m_aControlTree.SetDragDropMode( 0 ); @@ -163,7 +160,6 @@ namespace pcr pLoop = m_aControlTree.Next(pLoop); } - DBG_DTOR(OSelectLabelDialog,NULL); } diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx index c41d2893b081..34431c9b82f5 100644 --- a/extensions/source/propctrlr/submissionhandler.cxx +++ b/extensions/source/propctrlr/submissionhandler.cxx @@ -86,21 +86,18 @@ namespace pcr //= SubmissionPropertyHandler - DBG_NAME( SubmissionPropertyHandler ) SubmissionPropertyHandler::SubmissionPropertyHandler( const Reference< XComponentContext >& _rxContext ) :EditPropertyHandler_Base( _rxContext ) ,OPropertyChangeListener( m_aMutex ) ,m_pPropChangeMultiplexer( NULL ) { - DBG_CTOR( SubmissionPropertyHandler, NULL ); } SubmissionPropertyHandler::~SubmissionPropertyHandler( ) { disposeAdapter(); - DBG_DTOR( SubmissionPropertyHandler, NULL ); } diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx index 9e3d08e12cc1..770610adab84 100644 --- a/extensions/source/propctrlr/taborder.cxx +++ b/extensions/source/propctrlr/taborder.cxx @@ -70,7 +70,6 @@ namespace pcr //= TabOrderDialog - DBG_NAME(TabOrderDialog) TabOrderDialog::TabOrderDialog( Window* _pParent, const Reference< XTabControllerModel >& _rxTabModel, const Reference< XControlContainer >& _rxControlCont, const Reference< XComponentContext >& _rxORB ) @@ -86,7 +85,6 @@ namespace pcr get(m_pPB_MoveDown, "downB"); get(m_pPB_AutoOrder, "autoB"); - DBG_CTOR(TabOrderDialog,NULL); m_pPB_MoveUp->SetClickHdl( LINK( this, TabOrderDialog, MoveUpClickHdl ) ); m_pPB_MoveDown->SetClickHdl( LINK( this, TabOrderDialog, MoveDownClickHdl ) ); @@ -124,7 +122,6 @@ namespace pcr // delete pLB_Controls; delete pImageList; - DBG_DTOR(TabOrderDialog,NULL); } @@ -291,12 +288,10 @@ namespace pcr //= TabOrderListBox - DBG_NAME(TabOrderListBox); TabOrderListBox::TabOrderListBox( Window* pParent, WinBits nBits ) :SvTreeListBox( pParent, nBits ) { - DBG_CTOR(TabOrderListBox,NULL); SetDragDropMode(0xFFFF/*SV_DRAGDROP_CTRL_MOVE*/); // Hmm. The flag alone is not enough, so to be on the safe side ... @@ -316,7 +311,6 @@ namespace pcr TabOrderListBox::~TabOrderListBox() { - DBG_DTOR(TabOrderListBox,NULL); } diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index ffcd96d28aa7..0f9f2f973958 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -168,13 +168,10 @@ namespace pcr // class OFormattedNumericControl - DBG_NAME(OFormattedNumericControl); OFormattedNumericControl::OFormattedNumericControl( Window* pParent, WinBits nWinStyle ) :OFormattedNumericControl_Base( PropertyControlType::Unknown, pParent, nWinStyle ) { - DBG_CTOR(OFormattedNumericControl,NULL); - getTypedControlWindow()->TreatAsNumber(sal_True); m_nLastDecimalDigits = getTypedControlWindow()->GetDecimalDigits(); @@ -183,7 +180,6 @@ namespace pcr OFormattedNumericControl::~OFormattedNumericControl() { - DBG_DTOR(OFormattedNumericControl,NULL); } diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx index 1aba285dcab8..0ba2ce682c65 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx @@ -71,18 +71,14 @@ namespace pcr //= XSDValidationPropertyHandler - DBG_NAME( XSDValidationPropertyHandler ) - XSDValidationPropertyHandler::XSDValidationPropertyHandler( const Reference< XComponentContext >& _rxContext ) :XSDValidationPropertyHandler_Base( _rxContext ) { - DBG_CTOR( XSDValidationPropertyHandler, NULL ); } XSDValidationPropertyHandler::~XSDValidationPropertyHandler() { - DBG_DTOR( XSDValidationPropertyHandler, NULL ); } |