diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 14:42:51 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 18:10:44 +0000 |
commit | 272a8afa60fe9a6b497c69a58b0054ad5b880690 (patch) | |
tree | 7ab255dd96cad6ab57b1271559b1d45a1c40baa1 /editeng | |
parent | 29eac0e49e372092cb119898e9f1116ab4e00532 (diff) |
convert more DBG_ASSERT(false to SAL_WARN
Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55
Reviewed-on: https://gerrit.libreoffice.org/26195
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 3 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 2 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 56669b5e67ce..6813187b0f9d 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -27,6 +27,7 @@ #include <osl/mutex.hxx> #include <vcl/window.hxx> #include <vcl/svapp.hxx> +#include <tools/diagnose_ex.h> #include <editeng/flditem.hxx> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Reference.hxx> @@ -2752,7 +2753,7 @@ namespace accessibility catch (const lang::IndexOutOfBoundsException&) { // this is not the exception that should be raised in this function ... - DBG_ASSERT( false, "unexpected exception" ); + DBG_UNHANDLED_EXCEPTION(); } } } diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 72172a67b35e..c6ab046ddc8b 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -3331,7 +3331,7 @@ void SvxScriptSetItem::GetSlotIds( sal_uInt16 nSlotId, sal_uInt16& rLatin, switch( nSlotId ) { default: - DBG_ASSERT( false, "wrong SlotId for class SvxScriptSetItem" ); + SAL_WARN( "editeng", "wrong SlotId for class SvxScriptSetItem" ); SAL_FALLTHROUGH; // default to font - Id Range !! case SID_ATTR_CHAR_FONT: diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 5ed9ff583329..1f3fe9425801 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -321,7 +321,7 @@ sal_Int32 Outliner::GetBulletsNumberingStatus( if ( nParaStart > nParaEnd || nParaEnd >= pParaList->GetParagraphCount() ) { - DBG_ASSERT( false,"<Outliner::GetBulletsNumberingStatus> - unexpected parameter values" ); + SAL_WARN("editeng", "<Outliner::GetBulletsNumberingStatus> - unexpected parameter values" ); return 2; } |