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 | 711d287e9ea99e3cddadd44b6238148c5daec2e7 (patch) | |
tree | 36570a7ecdbff195da980ba7793eab136800d4f7 /starmath | |
parent | 1f5ca7ac65f677274085943afd6a5e256b9dc291 (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 f50ea4e0eb..c8cbfef065 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 00e3e3ea26..926e3085bd 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 6a649d0e5c..9f3094e25a 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 473ea367c2..90d805d501 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"); } } |