summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-07 13:39:07 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-09 11:02:26 +0200
commitfb73274fcce1edd3d898b7f79700fea96d0040f9 (patch)
tree6c344a427769ccbb5f2902ed9ecbc5febe702557 /sw
parentbe3e1d65f50fe8b4ce5e4a87a82ff231c00aae79 (diff)
sw: convert to assert
Change-Id: Ie5376106adb3df901b9762097e59d7627790443f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/undoflystrattr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/undo/undoflystrattr.cxx b/sw/source/core/undo/undoflystrattr.cxx
index e5a194a529bf..3993ef2f6728 100644
--- a/sw/source/core/undo/undoflystrattr.cxx
+++ b/sw/source/core/undo/undoflystrattr.cxx
@@ -20,6 +20,7 @@
#include <undoflystrattr.hxx>
#include <frmfmt.hxx>
+
SwUndoFlyStrAttr::SwUndoFlyStrAttr( SwFlyFrmFmt& rFlyFrmFmt,
const SwUndoId eUndoId,
const OUString& sOldStr,
@@ -29,9 +30,8 @@ SwUndoFlyStrAttr::SwUndoFlyStrAttr( SwFlyFrmFmt& rFlyFrmFmt,
msOldStr( sOldStr ),
msNewStr( sNewStr )
{
- OSL_ENSURE( eUndoId == UNDO_FLYFRMFMT_TITLE ||
- eUndoId == UNDO_FLYFRMFMT_DESCRIPTION,
- "<SwUndoFlyStrAttr::SwUndoFlyStrAttr(..)> - unexpected undo id --> Undo will not work" );
+ assert(eUndoId == UNDO_FLYFRMFMT_TITLE
+ || eUndoId == UNDO_FLYFRMFMT_DESCRIPTION);
}
SwUndoFlyStrAttr::~SwUndoFlyStrAttr()