diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-05-16 08:24:44 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-05-16 08:24:44 +0000 |
commit | ccebb74e0dd5dc69c5f939aaffea9dc2fa92a5e3 (patch) | |
tree | 3f139cde463246379279478a0df6ec0bfd98124f /xmloff/inc/MultiPropertySetHelper.hxx | |
parent | 5c948b017bddc5be9c9986fad65f8ca00826aa69 (diff) |
fixed asserts to actually use existing variables
Diffstat (limited to 'xmloff/inc/MultiPropertySetHelper.hxx')
-rw-r--r-- | xmloff/inc/MultiPropertySetHelper.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/inc/MultiPropertySetHelper.hxx b/xmloff/inc/MultiPropertySetHelper.hxx index eabaef34554e..8dd1f40e4af9 100644 --- a/xmloff/inc/MultiPropertySetHelper.hxx +++ b/xmloff/inc/MultiPropertySetHelper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: MultiPropertySetHelper.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dvo $ $Date: 2001-05-15 15:18:26 $ + * last change: $Author: dvo $ $Date: 2001-05-16 09:24:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -209,7 +209,7 @@ const ::com::sun::star::uno::Any& MultiPropertySetHelper::getValue( "called getValue() without calling getValues() before"); DBG_ASSERT( pSequenceIndex != NULL, "called getValue() without calling hasProperties() before" ); - DBG_ASSERT( nValueNo < nIndex, "index out of range" ); + DBG_ASSERT( nValueNo < nLength, "index out of range" ); sal_Int16 nIndex = pSequenceIndex[ nValueNo ]; return ( nIndex != -1 ) ? pValues[ nIndex ] : aEmptyAny; @@ -219,7 +219,7 @@ sal_Bool MultiPropertySetHelper::hasProperty( sal_Int16 nValueNo ) { DBG_ASSERT( pSequenceIndex != NULL, "called getValue() without calling hasProperties() before" ); - DBG_ASSERT( nValueNo < nIndex, "index out of range" ); + DBG_ASSERT( nValueNo < nLength, "index out of range" ); return pSequenceIndex[ nValueNo ] != -1; } |