summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 11:51:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:54:59 +0100
commit64378f446e782b6636312a8c72a7400fd799c1a4 (patch)
tree25376336ad586c3804f16ebc05d62fb069bce74b /sw/source/core/unocore/unodraw.cxx
parent83d8300b31948702f3c11dc14d4070501b108084 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 168904e21952..2f2b33b2b13d 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -243,8 +243,7 @@ public:
break;
default:
{
- OSL_ENSURE( false,
- "<SwShapeDescriptor_Impl::SetPositionLayoutDir(..)> - invalid attribute value." );
+ OSL_FAIL( "<SwShapeDescriptor_Impl::SetPositionLayoutDir(..)> - invalid attribute value." );
}
}
}
@@ -362,8 +361,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj )
}
else
{
- OSL_ENSURE( false,
- "<SwFmDrawPage::_CreateShape(..)> - could not retrieve type. Thus, no shape created." );
+ OSL_FAIL( "<SwFmDrawPage::_CreateShape(..)> - could not retrieve type. Thus, no shape created." );
return xRet;
}
DBG_ASSERT( eType != FLYCNTTYPE_ALL, "unexpected FlyCntType value for eType" );
@@ -2436,8 +2434,7 @@ awt::Point SwXShape::_ConvertPositionToHoriL2R( const awt::Point _aObjPos,
break;
default:
{
- OSL_ENSURE( false,
- "<SwXShape::_ConvertPositionToHoriL2R(..)> - unsupported layout direction" );
+ OSL_FAIL( "<SwXShape::_ConvertPositionToHoriL2R(..)> - unsupported layout direction" );
}
}
}