Kaydet (Commit) d0b09f41 authored tarafından Michael Stahl's avatar Michael Stahl

sw: related: tdf#58624 convert to assert() in ~SwAccessibleMap()

With the restored Dispose() calls from previous commit these don't
trigger on every scrolled document now.

Change-Id: I93694352adadc2c3a034be949d4930de51ec80e9
üst b299aa7c
......@@ -1700,8 +1700,8 @@ SwAccessibleMap::~SwAccessibleMap()
{
osl::MutexGuard aGuard( maMutex );
#if OSL_DEBUG_LEVEL > 0
OSL_ENSURE( !mpFrameMap || mpFrameMap->empty(),
"Frame map should be empty after disposing the root frame" );
assert((!mpFrameMap || mpFrameMap->empty()) &&
"Frame map should be empty after disposing the root frame");
if( mpFrameMap )
{
SwAccessibleContextMap_Impl::iterator aIter = mpFrameMap->begin();
......@@ -1717,8 +1717,8 @@ SwAccessibleMap::~SwAccessibleMap()
++aIter;
}
}
OSL_ENSURE( !mpShapeMap || mpShapeMap->empty(),
"Object map should be empty after disposing the root frame" );
assert((!mpShapeMap || mpShapeMap->empty()) &&
"Object map should be empty after disposing the root frame");
if( mpShapeMap )
{
SwAccessibleShapeMap_Impl::iterator aIter = mpShapeMap->begin();
......@@ -1751,7 +1751,7 @@ SwAccessibleMap::~SwAccessibleMap()
{
osl::MutexGuard aGuard( maEventMutex );
#if OSL_DEBUG_LEVEL > 0
OSL_ENSURE( !(mpEvents || mpEventMap), "pending events" );
assert(!(mpEvents || mpEventMap));
if( mpEvents )
{
SwAccessibleEventList_Impl::iterator aIter = mpEvents->begin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment