diff options
-rw-r--r-- | sal/inc/rtl/string.hxx | 8 | ||||
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index bbf737a6379f..1753c938e0e6 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -2,9 +2,9 @@ * * $RCSfile: string.hxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: sb $ $Date: 2002-10-16 12:08:07 $ + * last change: $Author: sb $ $Date: 2002-10-17 13:06:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -574,7 +574,7 @@ public: */ OString copy( sal_Int32 beginIndex ) const SAL_THROW(()) { - OSL_ENSURE(beginIndex >= 0 && beginIndex <= getLength()); + OSL_ASSERT(beginIndex >= 0 && beginIndex <= getLength()); if ( beginIndex == 0 ) return *this; else @@ -598,7 +598,7 @@ public: */ OString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(()) { - OSL_ENSURE(beginIndex >= 0 && beginIndex <= getLength() + OSL_ASSERT(beginIndex >= 0 && beginIndex <= getLength() && count >= 0 && count <= getLength() - beginIndex); if ( (beginIndex == 0) && (count == getLength()) ) return *this; diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index da727a74a890..c59913cff841 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ustring.hxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: sb $ $Date: 2002-10-16 12:08:09 $ + * last change: $Author: sb $ $Date: 2002-10-17 13:06:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -805,7 +805,7 @@ public: */ OUString copy( sal_Int32 beginIndex ) const SAL_THROW(()) { - OSL_ENSURE(beginIndex >= 0 && beginIndex <= getLength()); + OSL_ASSERT(beginIndex >= 0 && beginIndex <= getLength()); if ( beginIndex == 0 ) return *this; else @@ -829,7 +829,7 @@ public: */ OUString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(()) { - OSL_ENSURE(beginIndex >= 0 && beginIndex <= getLength() + OSL_ASSERT(beginIndex >= 0 && beginIndex <= getLength() && count >= 0 && count <= getLength() - beginIndex); if ( (beginIndex == 0) && (count == getLength()) ) return *this; |