summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw/PostItMgr.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 11:51:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:54:59 +0100
commit64378f446e782b6636312a8c72a7400fd799c1a4 (patch)
tree25376336ad586c3804f16ebc05d62fb069bce74b /sw/source/ui/docvw/PostItMgr.cxx
parent83d8300b31948702f3c11dc14d4070501b108084 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'sw/source/ui/docvw/PostItMgr.cxx')
-rw-r--r--sw/source/ui/docvw/PostItMgr.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx
index c2f3d9fbb6ac..43a80ad35eeb 100644
--- a/sw/source/ui/docvw/PostItMgr.cxx
+++ b/sw/source/ui/docvw/PostItMgr.cxx
@@ -284,7 +284,7 @@ void SwPostItMgr::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
if ( mpView->GetDocShell() != &rBC )
{
// field to be removed is the broadcaster
- OSL_ENSURE(false, "Notification for removed SwFmtFld was not sent!");
+ OSL_FAIL("Notification for removed SwFmtFld was not sent!");
RemoveItem(&rBC);
}
break;
@@ -314,7 +314,7 @@ void SwPostItMgr::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
}
else
{
- OSL_ENSURE(false, "Inserted field not in document!" );
+ OSL_FAIL("Inserted field not in document!" );
}
break;
}
@@ -430,7 +430,7 @@ bool SwPostItMgr::CalcRects()
SwSidebarItem* pItem = (*i);
if ( !pItem->UseElement() )
{
- OSL_ENSURE(false, "PostIt is not in doc or other wrong use");
+ OSL_FAIL("PostIt is not in doc or other wrong use");
bRepair = true;
continue;
}
@@ -743,7 +743,7 @@ void SwPostItMgr::LayoutPostIts()
SwSidebarItem* pItem = (*i);
if ( !pItem->UseElement() )
{
- OSL_ENSURE(false, "PostIt is not in doc!");
+ OSL_FAIL("PostIt is not in doc!");
bRepair = true;
continue;
}
@@ -776,7 +776,7 @@ bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const
{
if ( mPages[aPage-1]->mList->empty() )
{
- OSL_ENSURE(false, "Notes SidePane painted but no rects and page lists calculated!");
+ OSL_FAIL("Notes SidePane painted but no rects and page lists calculated!");
return false;
}
@@ -1073,7 +1073,7 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons
// security check so we don't loop forever
if (loop>MAX_LOOP_COUNT)
{
- OSL_ENSURE(false, "PostItMgr::Layout(): We are looping forever");
+ OSL_FAIL("PostItMgr::Layout(): We are looping forever");
break;
}
}
@@ -1331,7 +1331,7 @@ long SwPostItMgr::GetNextBorder()
}
}
- OSL_ENSURE(false, "SwPostItMgr::GetNextBorder(): We have to find a next border here");
+ OSL_FAIL("SwPostItMgr::GetNextBorder(): We have to find a next border here");
return -1;
}
@@ -1649,7 +1649,7 @@ IMPL_LINK( SwPostItMgr, CalcHdl, void*, /* pVoid*/ )
mnEventId = 0;
if ( mbLayouting )
{
- OSL_ENSURE(false, "Reentrance problem in Layout Manager!");
+ OSL_FAIL("Reentrance problem in Layout Manager!");
mbWaitingForCalcRects = false;
return 0;
}