diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-02 08:58:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-03 08:38:50 +0200 |
commit | 4450b2a16677431b1b9dfaa28d0b9af9e51ebdec (patch) | |
tree | 22aa13a8d13f690b8498ec4bdb502d198593fcab /reportdesign | |
parent | d76281864b0e83812c0edf7490b1e8271e89fff5 (diff) |
pass area param to DBG_UNHANDLED_EXCEPTION
and update sallogareas plugin to enforce this
Change-Id: Id0782c8a1f619372e10d931aec3c6a4743a4c86a
Reviewed-on: https://gerrit.libreoffice.org/52249
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
21 files changed, 58 insertions, 58 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 09d9f2105a71..641b88d95e12 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -610,7 +610,7 @@ void OReportDefinition::init() } catch (const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -2665,7 +2665,7 @@ uno::Any SAL_CALL OReportDefinition::getTransferData( const datatransfer::DataFl } catch (const uno::Exception &) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } diff --git a/reportdesign/source/core/api/Shape.cxx b/reportdesign/source/core/api/Shape.cxx index c6cfed2460ab..671bccaa2f32 100644 --- a/reportdesign/source/core/api/Shape.cxx +++ b/reportdesign/source/core/api/Shape.cxx @@ -323,7 +323,7 @@ uno::Reference< util::XCloneable > SAL_CALL OShape::createClone( ) } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } return xSet.get(); } diff --git a/reportdesign/source/core/misc/conditionupdater.cxx b/reportdesign/source/core/misc/conditionupdater.cxx index 66afe169c2f0..ded43a57cdc0 100644 --- a/reportdesign/source/core/misc/conditionupdater.cxx +++ b/reportdesign/source/core/misc/conditionupdater.cxx @@ -112,7 +112,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/core/sdr/PropertyForward.cxx b/reportdesign/source/core/sdr/PropertyForward.cxx index 48ad24533135..a2a94ccd6fff 100644 --- a/reportdesign/source/core/sdr/PropertyForward.cxx +++ b/reportdesign/source/core/sdr/PropertyForward.cxx @@ -78,7 +78,7 @@ OPropertyMediator::OPropertyMediator(const Reference< XPropertySet>& _xSource } catch(Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } osl_atomic_decrement(&m_refCount); diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index 619c699ad57b..e67f7a91626d 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -136,7 +136,7 @@ uno::Reference< drawing::XShape > OReportDrawPage::CreateShape( SdrObject *pObj } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx index 4b5a377386a5..208c07c97f99 100644 --- a/reportdesign/source/core/sdr/RptObject.cxx +++ b/reportdesign/source/core/sdr/RptObject.cxx @@ -151,7 +151,7 @@ SdrObject* OObjectBase::createObject(const uno::Reference< report::XReportCompon } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } break; case OBJ_DLG_SUBREPORT: @@ -617,7 +617,7 @@ void OUnoObject::impl_initializeModel_nothrow() } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -746,7 +746,7 @@ bool OUnoObject::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } impl_initializeModel_nothrow(); diff --git a/reportdesign/source/core/sdr/UndoActions.cxx b/reportdesign/source/core/sdr/UndoActions.cxx index 825fd7b8f574..4ec5c57dc647 100644 --- a/reportdesign/source/core/sdr/UndoActions.cxx +++ b/reportdesign/source/core/sdr/UndoActions.cxx @@ -140,7 +140,7 @@ OUndoContainerAction::~OUndoContainerAction() } catch ( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx index 430a8bd57b50..cb42c8d086fb 100644 --- a/reportdesign/source/core/sdr/UndoEnv.cxx +++ b/reportdesign/source/core/sdr/UndoEnv.cxx @@ -278,7 +278,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } const bool bTransReadOnly = ( ( nPropertyAttributes & PropertyAttribute::READONLY ) != 0 ) @@ -325,7 +325,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } if ( pUndo == nullptr ) @@ -380,7 +380,7 @@ void SAL_CALL OXUndoEnvironment::elementInserted(const ContainerEvent& evt) } catch(uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -449,7 +449,7 @@ void SAL_CALL OXUndoEnvironment::elementRemoved(const ContainerEvent& evt) } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } else @@ -488,7 +488,7 @@ void OXUndoEnvironment::AddSection(const Reference< report::XSection > & _xSecti } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -540,7 +540,7 @@ void OXUndoEnvironment::switchListening( const Reference< XIndexAccess >& _rxCon } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/core/sdr/formatnormalizer.cxx b/reportdesign/source/core/sdr/formatnormalizer.cxx index 8b6276c20dda..b1c132bd9ed5 100644 --- a/reportdesign/source/core/sdr/formatnormalizer.cxx +++ b/reportdesign/source/core/sdr/formatnormalizer.cxx @@ -149,7 +149,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } @@ -195,7 +195,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } m_bFieldListDirty = false; @@ -249,7 +249,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/filter/xml/xmlReport.cxx b/reportdesign/source/filter/xml/xmlReport.cxx index 052842d60230..09cd727cfe95 100644 --- a/reportdesign/source/filter/xml/xmlReport.cxx +++ b/reportdesign/source/filter/xml/xmlReport.cxx @@ -121,7 +121,7 @@ void OXMLReport::impl_initRuntimeDefaults() const } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx index 34a669b66c30..0299f5cabe94 100644 --- a/reportdesign/source/ui/dlg/AddField.cxx +++ b/reportdesign/source/ui/dlg/AddField.cxx @@ -201,7 +201,7 @@ OAddFieldWindow::OAddFieldWindow(vcl::Window* pParent ,const uno::Reference< bea } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } @@ -371,7 +371,7 @@ void OAddFieldWindow::Update() } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx index cffe5bf281ad..9a67ebdd747b 100644 --- a/reportdesign/source/ui/dlg/CondFormat.cxx +++ b/reportdesign/source/ui/dlg/CondFormat.cxx @@ -201,7 +201,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } impl_conditionCountChanged(); @@ -259,7 +259,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } impl_conditionCountChanged(); @@ -287,7 +287,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); return; } @@ -298,7 +298,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } // at least the two swapped conditions need to know their new index @@ -391,7 +391,7 @@ namespace rptui } catch( Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -421,7 +421,7 @@ namespace rptui } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } return sDataField; } @@ -469,7 +469,7 @@ namespace rptui } catch ( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); nRet = RET_NO; } } diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx index 4f147933d6e3..0d76f42744ff 100644 --- a/reportdesign/source/ui/dlg/Condition.cxx +++ b/reportdesign/source/ui/dlg/Condition.cxx @@ -375,7 +375,7 @@ void Condition::setCondition( const uno::Reference< report::XFormatCondition >& } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } impl_setCondition( sConditionFormula ); updateToolbar( _rxCondition.get() ); @@ -409,7 +409,7 @@ void Condition::updateToolbar(const uno::Reference< report::XReportControlFormat } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx index 58ea17e3eeed..ea96a409cfcb 100644 --- a/reportdesign/source/ui/misc/UITools.cxx +++ b/reportdesign/source/ui/misc/UITools.cxx @@ -725,7 +725,7 @@ bool openCharDialog( const uno::Reference<report::XReportControlFormat >& _rxRep } catch(uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } SfxItemPool::Free(pPool); @@ -764,7 +764,7 @@ bool openAreaDialog( const uno::Reference<report::XShape >& _xShape,const uno::R } catch(uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } return bSuccess; @@ -825,7 +825,7 @@ void applyCharacterSettings( const uno::Reference< report::XReportControlFormat } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -942,7 +942,7 @@ uno::Sequence< OUString > getParameterNames( const uno::Reference< sdbc::XRowSet } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } return aNames; diff --git a/reportdesign/source/ui/report/FixedTextColor.cxx b/reportdesign/source/ui/report/FixedTextColor.cxx index 63bde85edb6e..75d59b8cfea7 100644 --- a/reportdesign/source/ui/report/FixedTextColor.cxx +++ b/reportdesign/source/ui/report/FixedTextColor.cxx @@ -75,7 +75,7 @@ namespace rptui } catch (uno::Exception const&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -145,7 +145,7 @@ namespace rptui } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx index 3d92f69ccdac..1fb7740f1b38 100644 --- a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx +++ b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx @@ -107,7 +107,7 @@ namespace rptui } catch (const uno::Exception &) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index 679f31c1143c..8a82ef78f5ff 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -353,7 +353,7 @@ void OReportController::disposing() } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -1712,7 +1712,7 @@ void OReportController::impl_initialize( ) } catch(const SQLException&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -2031,7 +2031,7 @@ void OReportController::impl_onModifyChanged() } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -2214,7 +2214,7 @@ void SAL_CALL OReportController::propertyChange( const beans::PropertyChangeEven } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -2488,7 +2488,7 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _ } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } SfxItemPool::Free(pPool); @@ -2803,7 +2803,7 @@ void SAL_CALL OReportController::restoreViewData(const uno::Any& i_data) } catch(const IllegalArgumentException&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -2970,7 +2970,7 @@ uno::Reference< sdbc::XRowSet > const & OReportController::getRowSet() } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } return m_xRowSet; @@ -3004,7 +3004,7 @@ void OReportController::insertGraphic() } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -3370,7 +3370,7 @@ void OReportController::addPairControls(const Sequence< PropertyValue >& aArgs) } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } #endif @@ -3574,7 +3574,7 @@ void OReportController::addPairControls(const Sequence< PropertyValue >& aArgs) } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -3856,7 +3856,7 @@ void OReportController::modifyGroup(const bool _bAppend, const Sequence< Propert } catch(const Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -4203,7 +4203,7 @@ void OReportController::openZoomDialog() } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } SfxItemPool::Free(pPool); diff --git a/reportdesign/source/ui/report/ReportControllerObserver.cxx b/reportdesign/source/ui/report/ReportControllerObserver.cxx index df1aed082188..d56d55b0a427 100644 --- a/reportdesign/source/ui/report/ReportControllerObserver.cxx +++ b/reportdesign/source/ui/report/ReportControllerObserver.cxx @@ -181,7 +181,7 @@ void OXReportControllerObserver::AddSection(const uno::Reference< report::XSecti } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -199,7 +199,7 @@ void OXReportControllerObserver::RemoveSection(const uno::Reference< report::XSe } catch(uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -236,7 +236,7 @@ void OXReportControllerObserver::switchListening( const uno::Reference< containe } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } @@ -267,7 +267,7 @@ void OXReportControllerObserver::switchListening( const uno::Reference< uno::XIn } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } diff --git a/reportdesign/source/ui/report/SectionView.cxx b/reportdesign/source/ui/report/SectionView.cxx index 76204b92e62d..06b594f63d6e 100644 --- a/reportdesign/source/ui/report/SectionView.cxx +++ b/reportdesign/source/ui/report/SectionView.cxx @@ -183,7 +183,7 @@ void OSectionView::SetMarkedToLayer( SdrLayerID _nLayerNo ) } catch(const uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx index 3248f749ab90..c66e3d00184d 100644 --- a/reportdesign/source/ui/report/dlgedfunc.cxx +++ b/reportdesign/source/ui/report/dlgedfunc.cxx @@ -405,7 +405,7 @@ void DlgEdFunc::activateOle(SdrObject* _pObj) } catch( uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); } } } diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx index a96f29fa72c6..2f671b5872e6 100644 --- a/reportdesign/source/ui/report/propbrw.cxx +++ b/reportdesign/source/ui/report/propbrw.cxx @@ -109,7 +109,7 @@ PropBrw::PropBrw(const Reference< XComponentContext >& _xORB, vcl::Window* pPare catch (Exception&) { OSL_FAIL("PropBrw::PropBrw: could not create/initialize my frame!"); - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); m_xMeAsFrame.clear(); } @@ -154,7 +154,7 @@ PropBrw::PropBrw(const Reference< XComponentContext >& _xORB, vcl::Window* pPare catch (Exception&) { OSL_FAIL("PropBrw::PropBrw: could not create/initialize the browser controller!"); - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("reportdesign"); try { ::comphelper::disposeComponent(m_xBrowserController); |