diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-25 00:27:00 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-25 22:45:52 +0200 |
commit | 5ce7572ee77be4459536fa5f3153fdc8b4b5d0d3 (patch) | |
tree | 6d72bd2914e27a6699605e63ff40f271cd6ff837 | |
parent | bcf426652399e81ae692a1202afb409db3a49103 (diff) |
sw: deploy some asserts
Change-Id: I7bb6820c2ad46f6822dc1f153ae25fd55a1f674b
-rw-r--r-- | sw/source/core/access/accmap.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 7ebdc998cb69..71c4a1e7e63b 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -371,8 +371,8 @@ public: mnStates( AccessibleStates::NONE ), mpParentFrm( nullptr ) { - OSL_ENSURE( SwAccessibleEvent_Impl::DISPOSE == meType, - "wrong event constructor, DISPOSE only" ); + assert(SwAccessibleEvent_Impl::DISPOSE == meType && + "wrong event constructor, DISPOSE only"); } SwAccessibleEvent_Impl( EventType eT ) @@ -380,7 +380,7 @@ public: mnStates( AccessibleStates::NONE ), mpParentFrm( nullptr ) { - OSL_ENSURE( SwAccessibleEvent_Impl::SHAPE_SELECTION == meType, + assert(SwAccessibleEvent_Impl::SHAPE_SELECTION == meType && "wrong event constructor, SHAPE_SELECTION only" ); } @@ -395,8 +395,8 @@ public: mnStates( AccessibleStates::NONE ), mpParentFrm( nullptr ) { - OSL_ENSURE( SwAccessibleEvent_Impl::CHILD_POS_CHANGED == meType || - SwAccessibleEvent_Impl::POS_CHANGED == meType, + assert((SwAccessibleEvent_Impl::CHILD_POS_CHANGED == meType || + SwAccessibleEvent_Impl::POS_CHANGED == meType) && "wrong event constructor, (CHILD_)POS_CHANGED only" ); } @@ -410,7 +410,7 @@ public: mnStates( _nStates ), mpParentFrm( nullptr ) { - OSL_ENSURE( SwAccessibleEvent_Impl::CARET_OR_STATES == meType, + assert( SwAccessibleEvent_Impl::CARET_OR_STATES == meType && "wrong event constructor, CARET_OR_STATES only" ); } @@ -422,7 +422,7 @@ public: mnStates( AccessibleStates::NONE ), mpParentFrm( pParentFrm ) { - OSL_ENSURE( SwAccessibleEvent_Impl::CHILD_POS_CHANGED == meType, + assert( SwAccessibleEvent_Impl::CHILD_POS_CHANGED == meType && "wrong event constructor, CHILD_POS_CHANGED only" ); } |