summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgavl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgavl.cxx')
-rw-r--r--sot/source/sdstor/stgavl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx
index 722fb2549118..3cb48c2a1da9 100644
--- a/sot/source/sdstor/stgavl.cxx
+++ b/sot/source/sdstor/stgavl.cxx
@@ -19,6 +19,7 @@
#include <osl/diagnose.h>
#include "stgavl.hxx"
+#include <assert.h>
StgAvlNode::StgAvlNode()
{
@@ -142,7 +143,7 @@ StgAvlNode* StgAvlNode::RotLL()
StgAvlNode* StgAvlNode::RotLR()
{
- OSL_ENSURE( pLeft && pLeft->pRight, "The pointer is not allowed to be NULL!" );
+ assert(pLeft && pLeft->pRight && "The pointer is not allowed to be NULL!");
StgAvlNode* pHeavy = pLeft;
StgAvlNode* pNewRoot = pHeavy->pRight;