diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-07 14:46:42 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-07 14:46:42 +1000 |
commit | d0a99cc2ed76be220f7e868e332ba19f6e48a440 (patch) | |
tree | 56addcedd12a0a4f16471e55c46a7835857d5555 /sd/source/ui/presenter | |
parent | 3965f4cb28676133dc37a926e56b4d612e2a57ba (diff) |
tdf#43157: convert sd module away from OSL_ASSERT to assert
Change-Id: I1e768d23da6adb1a3fe351a8105286b0cb5b5192
Diffstat (limited to 'sd/source/ui/presenter')
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index a55330d3865b..19b4529c2f25 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -99,7 +99,7 @@ void SAL_CALL PresenterPreviewCache::setDocumentSlides ( const Reference<XInterface>& rxDocument) { ThrowIfDisposed(); - OSL_ASSERT(mpCacheContext.get()!=nullptr); + assert(mpCacheContext.get()!=nullptr); mpCacheContext->SetDocumentSlides(rxSlides, rxDocument); } @@ -109,7 +109,7 @@ void SAL_CALL PresenterPreviewCache::setVisibleRange ( sal_Int32 nLastVisibleSlideIndex) { ThrowIfDisposed(); - OSL_ASSERT(mpCacheContext.get()!=nullptr); + assert(mpCacheContext.get()!=nullptr); mpCacheContext->SetVisibleSlideRange (nFirstVisibleSlideIndex, nLastVisibleSlideIndex); } @@ -118,7 +118,7 @@ void SAL_CALL PresenterPreviewCache::setPreviewSize ( const css::geometry::IntegerSize2D& rSize) { ThrowIfDisposed(); - OSL_ASSERT(mpCache.get()!=nullptr); + assert(mpCache.get()!=nullptr); maPreviewSize = Size(rSize.Width, rSize.Height); mpCache->ChangeSize(maPreviewSize, Bitmap::HasFastScale()); @@ -129,7 +129,7 @@ Reference<rendering::XBitmap> SAL_CALL PresenterPreviewCache::getSlidePreview ( const Reference<rendering::XCanvas>& rxCanvas) { ThrowIfDisposed(); - OSL_ASSERT(mpCacheContext.get()!=nullptr); + assert(mpCacheContext.get()!=nullptr); cppcanvas::CanvasSharedPtr pCanvas ( cppcanvas::VCLFactory::createCanvas(rxCanvas)); @@ -166,14 +166,14 @@ void SAL_CALL PresenterPreviewCache::removePreviewCreationNotifyListener ( void SAL_CALL PresenterPreviewCache::pause() { ThrowIfDisposed(); - OSL_ASSERT(mpCache.get()!=nullptr); + assert(mpCache.get()!=nullptr); mpCache->Pause(); } void SAL_CALL PresenterPreviewCache::resume() { ThrowIfDisposed(); - OSL_ASSERT(mpCache.get()!=nullptr); + assert(mpCache.get()!=nullptr); mpCache->Resume(); } |