diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:51:35 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:54:59 +0100 |
commit | 64378f446e782b6636312a8c72a7400fd799c1a4 (patch) | |
tree | 25376336ad586c3804f16ebc05d62fb069bce74b /starmath | |
parent | 83d8300b31948702f3c11dc14d4070501b108084 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 4 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 2 | ||||
-rw-r--r-- | starmath/source/rect.cxx | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 22dad35ead07..82ba98f72c33 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -1748,7 +1748,7 @@ int MathType::HandleRecords(int nLevel,sal_uInt8 nSelector, *pS >> nTabType; *pS >> nTabOffset; } - OSL_ENSURE(false,"Not seen in the wild Equation Ruler Field"); + OSL_FAIL("Not seen in the wild Equation Ruler Field"); break; case FONT: { diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index e80afcab0006..2affb7012372 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1562,7 +1562,7 @@ void SmSubSupNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat) aPos.Y() -= nDist; break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); break; } @@ -2172,7 +2172,7 @@ void SmFontNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat) case TYELLOW : SetColor(Color(COL_YELLOW)); break; default: - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } pNode->Arrange(rDev, rFormat); diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 876cf250fc63..bc5aac11c456 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1296,7 +1296,7 @@ void SmParser::SubSup(ULONG nActiveGroup) case TLSUB : nIndex = (int) LSUB; break; case TLSUP : nIndex = (int) LSUP; break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } nIndex++; OSL_ENSURE(1 <= nIndex && nIndex <= 1 + SUBSUP_NUM_ENTRIES, diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 9bd8cf8e35e8..a4554024e76d 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -349,7 +349,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos, + GetItalicLeftSpace(); break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } // check if horizontal position is already set @@ -386,7 +386,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos, aPos.Y() += rRect.GetLoAttrFence() - GetTop(); break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } // check if vertical position is already set @@ -403,7 +403,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos, aPos.X() += rRect.GetItalicRight() - GetItalicRight(); break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } return aPos; @@ -494,7 +494,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) CopyMBL(rRect); break; default : - OSL_ENSURE(false, "Sm: unknown case"); + OSL_FAIL("Sm: unknown case"); } } |