diff options
Diffstat (limited to 'sdext/source/presenter/PresenterToolBar.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index 96578da5e01c..de0a63e2d355 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -424,7 +424,7 @@ void SAL_CALL PresenterToolBar::disposing() ElementContainer::const_iterator iEnd (maElementContainer.end()); for ( ; iPart!=iEnd; ++iPart) { - assert(iPart->get()!=nullptr); + OSL_ASSERT(iPart->get()!=nullptr); ElementContainerPart::iterator iElement ((*iPart)->begin()); ElementContainerPart::const_iterator iPartEnd ((*iPart)->end()); for ( ; iElement!=iPartEnd; ++iElement) @@ -959,7 +959,7 @@ void PresenterToolBar::Paint ( const awt::Rectangle& rUpdateBox, const rendering::ViewState& rViewState) { - assert(mxCanvas.is()); + OSL_ASSERT(mxCanvas.is()); ElementContainer::iterator iPart; ElementContainer::const_iterator iEnd (maElementContainer.end()); @@ -1190,8 +1190,8 @@ Element::Element ( { if (mpToolBar.get() != nullptr) { - assert(mpToolBar->GetPresenterController().is()); - assert(mpToolBar->GetPresenterController()->GetWindowManager().is()); + OSL_ASSERT(mpToolBar->GetPresenterController().is()); + OSL_ASSERT(mpToolBar->GetPresenterController()->GetWindowManager().is()); } } @@ -1292,7 +1292,7 @@ bool Element::SetState ( void Element::Invalidate (const bool bSynchronous) { - assert(mpToolBar.is()); + OSL_ASSERT(mpToolBar.is()); mpToolBar->InvalidateArea(GetBoundingBox(), bSynchronous); } @@ -1318,8 +1318,8 @@ bool Element::IsFilling() const void Element::UpdateState() { - assert(mpToolBar.get() != nullptr); - assert(mpToolBar->GetPresenterController().get() != nullptr); + OSL_ASSERT(mpToolBar.get() != nullptr); + OSL_ASSERT(mpToolBar->GetPresenterController().get() != nullptr); if (mpMode.get() == nullptr) return; @@ -1430,7 +1430,7 @@ void ElementMode::ReadElementMode ( } catch(Exception&) { - assert(false); + OSL_ASSERT(false); } } @@ -1453,9 +1453,9 @@ Button::Button ( : Element(rpToolBar), mbIsListenerRegistered(false) { - assert(mpToolBar.get() != nullptr); - assert(mpToolBar->GetPresenterController().is()); - assert(mpToolBar->GetPresenterController()->GetWindowManager().is()); + OSL_ASSERT(mpToolBar.get() != nullptr); + OSL_ASSERT(mpToolBar->GetPresenterController().is()); + OSL_ASSERT(mpToolBar->GetPresenterController()->GetWindowManager().is()); } void Button::Initialize() @@ -1466,12 +1466,12 @@ void Button::Initialize() void Button::disposing() { - assert(mpToolBar.get() != nullptr); + OSL_ASSERT(mpToolBar.get() != nullptr); if (mpToolBar.get() != nullptr && mbIsListenerRegistered) { - assert(mpToolBar->GetPresenterController().is()); - assert(mpToolBar->GetPresenterController()->GetWindowManager().is()); + OSL_ASSERT(mpToolBar->GetPresenterController().is()); + OSL_ASSERT(mpToolBar->GetPresenterController()->GetWindowManager().is()); mbIsListenerRegistered = false; mpToolBar->GetPresenterController()->GetWindowManager()->RemoveLayoutListener(this); @@ -1483,7 +1483,7 @@ void Button::Paint ( const Reference<rendering::XCanvas>& rxCanvas, const rendering::ViewState& rViewState) { - assert(rxCanvas.is()); + OSL_ASSERT(rxCanvas.is()); if (mpMode.get() == nullptr) return; @@ -1615,7 +1615,7 @@ awt::Size Label::CreateBoundingSize ( void Label::SetText (const OUString& rsText) { - assert(mpToolBar.get() != nullptr); + OSL_ASSERT(mpToolBar.get() != nullptr); if (mpMode.get() == nullptr) return; @@ -1635,7 +1635,7 @@ void Label::Paint ( const Reference<rendering::XCanvas>& rxCanvas, const rendering::ViewState& rViewState) { - assert(rxCanvas.is()); + OSL_ASSERT(rxCanvas.is()); if (mpMode.get() == nullptr) return; @@ -1692,7 +1692,7 @@ void Text::Paint ( const awt::Point& rOffset) { (void)rOffset; - assert(rxCanvas.is()); + OSL_ASSERT(rxCanvas.is()); if (msText.isEmpty()) return; @@ -1919,7 +1919,7 @@ void VerticalSeparator::Paint ( const Reference<rendering::XCanvas>& rxCanvas, const rendering::ViewState& rViewState) { - assert(rxCanvas.is()); + OSL_ASSERT(rxCanvas.is()); awt::Rectangle aBBox (GetBoundingBox()); @@ -1970,7 +1970,7 @@ void HorizontalSeparator::Paint ( const Reference<rendering::XCanvas>& rxCanvas, const rendering::ViewState& rViewState) { - assert(rxCanvas.is()); + OSL_ASSERT(rxCanvas.is()); awt::Rectangle aBBox (GetBoundingBox()); |