diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-07 13:39:07 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-09 11:02:26 +0200 |
commit | fb73274fcce1edd3d898b7f79700fea96d0040f9 (patch) | |
tree | 6c344a427769ccbb5f2902ed9ecbc5febe702557 /sw | |
parent | be3e1d65f50fe8b4ce5e4a87a82ff231c00aae79 (diff) |
sw: convert to assert
Change-Id: Ie5376106adb3df901b9762097e59d7627790443f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/undo/undoflystrattr.cxx | 6 |
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() |