diff options
Diffstat (limited to 'animations/source')
-rw-r--r-- | animations/source/animcore/targetpropertiescreator.cxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/animations/source/animcore/targetpropertiescreator.cxx b/animations/source/animcore/targetpropertiescreator.cxx index ca8ce793f744..fb953ee67f37 100644 --- a/animations/source/animcore/targetpropertiescreator.cxx +++ b/animations/source/animcore/targetpropertiescreator.cxx @@ -195,8 +195,7 @@ namespace animcore { if( !xNode.is() ) { - OSL_ENSURE( false, - "AnimCore: NodeFunctor::operator(): invalid XAnimationNode" ); + OSL_FAIL( "AnimCore: NodeFunctor::operator(): invalid XAnimationNode" ); return; } @@ -217,8 +216,7 @@ namespace animcore // TODO(E1): I'm not too sure what to expect here... if( !xIterNode->getTarget().hasValue() ) { - OSL_ENSURE( false, - "animcore: NodeFunctor::operator(): no target on ITERATE node" ); + OSL_FAIL( "animcore: NodeFunctor::operator(): no target on ITERATE node" ); return; } @@ -232,8 +230,7 @@ namespace animcore // no shape provided. Maybe a ParagraphTarget? if( !(xIterNode->getTarget() >>= aTarget) ) { - OSL_ENSURE( false, - "animcore: NodeFunctor::operator(): could not extract any " + OSL_FAIL( "animcore: NodeFunctor::operator(): could not extract any " "target information" ); return; } @@ -243,8 +240,7 @@ namespace animcore if( !xTargetShape.is() ) { - OSL_ENSURE( false, - "animcore: NodeFunctor::operator(): invalid shape in ParagraphTarget" ); + OSL_FAIL( "animcore: NodeFunctor::operator(): invalid shape in ParagraphTarget" ); return; } } @@ -260,8 +256,7 @@ namespace animcore if( !::anim::for_each_childNode( xNode, aFunctor ) ) { - OSL_ENSURE( false, - "AnimCore: NodeFunctor::operator(): child node iteration failed, " + OSL_FAIL( "AnimCore: NodeFunctor::operator(): child node iteration failed, " "or extraneous container nodes encountered" ); } } @@ -320,8 +315,7 @@ namespace animcore if( !(xAnimateNode->getTarget() >>= aUnoTarget) ) { - OSL_ENSURE( false, - "AnimCore: NodeFunctor::operator(): unknown target type encountered" ); + OSL_FAIL( "AnimCore: NodeFunctor::operator(): unknown target type encountered" ); break; } @@ -332,8 +326,7 @@ namespace animcore if( !aTarget.mxRef.is() ) { - OSL_ENSURE( false, - "AnimCore: NodeFunctor::operator(): Found target, but XShape is NULL" ); + OSL_FAIL( "AnimCore: NodeFunctor::operator(): Found target, but XShape is NULL" ); break; // invalid target XShape } |