summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-03-21 10:21:03 +0100
committerMichael Stahl <mstahl@redhat.com>2012-03-21 12:08:32 +0100
commit176ba743c12ecbfdda71522062f6d1a5749f3756 (patch)
treef8c5219f7010560556c7c07e44c0c14b144163f0 /sw/inc/bparr.hxx
parent2a1171929e221ec689d2b8b6ac473d91b53b6286 (diff)
BigPtrArray: deploy some asserts
Diffstat (limited to 'sw/inc/bparr.hxx')
-rw-r--r--sw/inc/bparr.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index cd95b1c75ed8..a2834d3bb06a 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -26,8 +26,10 @@
*
************************************************************************/
-#ifndef _BPARR_HXX
-#define _BPARR_HXX
+#ifndef SW_BPARR_HXX
+#define SW_BPARR_HXX
+
+#include <assert.h>
#include <tools/solar.h>
#include <osl/diagnose.h>
@@ -113,7 +115,7 @@ public:
inline sal_uLong BigPtrEntry::GetPos() const
{
- OSL_ENSURE( this == pBlock->pData[ nOffset ], "element not in the block" );
+ assert(this == pBlock->pData[ nOffset ]); // element not in the block
return pBlock->nStart + nOffset;
}