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 /svx/source/fmcomp | |
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 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 4 | ||||
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 32 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 14 |
4 files changed, 26 insertions, 26 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index b0cd940d60d3..83e507a54eb2 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -969,7 +969,7 @@ void FmGridHeader::PostExecuteColumnContextMenu(sal_uInt16 nColId, const PopupMe } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 742db63c6cff..32bdc76ab2c9 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -574,7 +574,7 @@ void SAL_CALL FmXGridControl::createPeer(const Reference< css::awt::XToolkit >& } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } } @@ -596,7 +596,7 @@ void SAL_CALL FmXGridControl::createPeer(const Reference< css::awt::XToolkit >& } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } Reference< css::awt::XView > xPeerView(getPeer(), UNO_QUERY); diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index b4ac9baf0263..d5edb7c1ff5f 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -124,8 +124,8 @@ namespace } catch( const Exception& ) { + DBG_UNHANDLED_EXCEPTION("svx"); OSL_FAIL( "getModelLineEndSetting: caught an exception!" ); - DBG_UNHANDLED_EXCEPTION(); } return eFormat; } @@ -254,7 +254,7 @@ void DbGridColumn::impl_toggleScriptManager_nothrow( bool _bAttach ) } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } @@ -571,8 +571,8 @@ DbCellControl::DbCellControl( DbGridColumn& _rColumn ) } catch( const Exception& ) { + DBG_UNHANDLED_EXCEPTION("svx"); OSL_FAIL( "DbCellControl::doPropertyListening: caught an exception!" ); - DBG_UNHANDLED_EXCEPTION(); } } @@ -594,8 +594,8 @@ void DbCellControl::implDoPropertyListening(const OUString& _rPropertyName, bool } catch( const Exception& ) { + DBG_UNHANDLED_EXCEPTION("svx"); OSL_FAIL( "DbCellControl::doPropertyListening: caught an exception!" ); - DBG_UNHANDLED_EXCEPTION(); } } @@ -695,7 +695,7 @@ bool DbCellControl::Commit() } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } // unlock the listening for value property changes unlockValueProperty(); @@ -891,7 +891,7 @@ void DbCellControl::Init( vcl::Window& rParent, const Reference< XRowSet >& _rxC } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } m_xCursor = _rxCursor; @@ -1095,7 +1095,7 @@ void DbTextField::Init( vcl::Window& rParent, const Reference< XRowSet >& xCurso catch( const Exception& ) { OSL_FAIL( "DbTextField::Init: caught an exception while determining the multi-line capabilities!" ); - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } m_bIsSimpleEdit = !bIsMultiLine; @@ -1492,7 +1492,7 @@ OUString DbFormattedField::GetFormatText(const Reference< css::sdb::XColumn >& _ } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } aText = m_pPainter->GetText(); @@ -1537,7 +1537,7 @@ void DbFormattedField::UpdateFromField(const Reference< css::sdb::XColumn >& _rx } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } @@ -1633,7 +1633,7 @@ void DbCheckBox::Init( vcl::Window& rParent, const Reference< XRowSet >& xCursor } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } DbCellControl::Init( rParent, xCursor ); @@ -1659,7 +1659,7 @@ static void lcl_setCheckBoxState( const Reference< css::sdb::XColumn >& _rxFie } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } _pCheckBoxControl->GetBox().SetState(eState); @@ -1941,7 +1941,7 @@ namespace } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } return sValue; @@ -2082,7 +2082,7 @@ namespace } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } return sValue; @@ -2224,7 +2224,7 @@ namespace } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } return sDate; @@ -2332,7 +2332,7 @@ namespace } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } return sTime; @@ -2597,7 +2597,7 @@ OUString DbListBox::GetFormatText(const Reference< css::sdb::XColumn >& _rxField } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } } return sText; diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 58962a5c9142..ba4cff36d95e 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -921,7 +921,7 @@ void DbGridRow::SetState(CursorWrapper* pCur, bool bPaintCursor) } catch(SQLException&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); m_aBookmark = Any(); m_eStatus = GridRowStatus::Invalid; m_bIsNew = false; @@ -1535,7 +1535,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, DbGridCo } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } bool bPermanentCursor = IsPermanentCursorEnabled(); @@ -1599,7 +1599,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, DbGridCo } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); m_nSeekPos = -1; } } @@ -2143,7 +2143,7 @@ bool DbGridControl::SetCurrent(long nNewRow) } catch ( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); EndCursorAction(); return false; } @@ -2441,7 +2441,7 @@ bool DbGridControl::SeekCursor(long nRow, bool bAbsolute) catch(Exception&) { OSL_FAIL("DbGridControl::SeekCursor : failed ..."); - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); m_nSeekPos = -1; // no further data set available } } @@ -2523,7 +2523,7 @@ void DbGridControl::MoveToNext() } catch(SQLException &) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } if(!bOk) @@ -3016,7 +3016,7 @@ void DbGridControl::Undo() } catch(Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("svx"); } EndCursorAction(); |