summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 14:27:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:50:43 +0100
commit1848de2f4cce84862cf0843e15f38ce5d1f26108 (patch)
tree38d3983e56f5d2c900c24750e0050556435cfd6b /drawinglayer
parente4d0bb122a93d243067814b9d43f9c9ab1e4df65 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/metafileprimitive2d.cxx6
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
index d205981205aa..5d3e5181855d 100644
--- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
@@ -2115,7 +2115,7 @@ namespace
case META_TEXTRECT_ACTION :
{
/** CHECKED, WORKS WELL */
- // OSL_ENSURE(false, "META_TEXTRECT_ACTION requested (!)");
+ // OSL_FAIL("META_TEXTRECT_ACTION requested (!)");
const MetaTextRectAction* pA = (const MetaTextRectAction*)pAction;
const Rectangle& rRectangle = pA->GetRect();
const sal_uInt32 nStringLength(pA->GetText().Len());
@@ -2729,7 +2729,7 @@ namespace
}
default :
{
- OSL_ENSURE(false, "interpretMetafile: META_MAPMODE_ACTION with unsupported MapUnit (!)");
+ OSL_FAIL("interpretMetafile: META_MAPMODE_ACTION with unsupported MapUnit (!)");
break;
}
}
@@ -3147,7 +3147,7 @@ namespace
}
default:
{
- OSL_ENSURE(false, "Unknown MetaFile Action (!)");
+ OSL_FAIL("Unknown MetaFile Action (!)");
break;
}
}
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index ceb8e8d5dd47..89894cc2396a 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -850,7 +850,7 @@ namespace drawinglayer
}
catch(const uno::Exception&)
{
- OSL_ENSURE(false, "VclMetafileProcessor2D: No access to printable flag of Control, caught an exception!");
+ OSL_FAIL("VclMetafileProcessor2D: No access to printable flag of Control, caught an exception!");
}
}
@@ -927,7 +927,7 @@ namespace drawinglayer
}
catch( const uno::Exception& )
{
- OSL_ENSURE(false, "VclMetafileProcessor2D: Printing of Control failed, caught an exception!");
+ OSL_FAIL("VclMetafileProcessor2D: Printing of Control failed, caught an exception!");
}
}