summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorShubham Goyal <22shubh22@gmail.com>2019-04-27 09:20:28 +0530
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-05-24 14:28:37 +0200
commit891db26079e0983f2afb38d32aa57eec9dbefc98 (patch)
tree327f3db7551595b875520bd0a5068b2fb21f6b32 /sd
parent848058625c7fad21e2469c95c2a2078678925a5a (diff)
tdf#43157 - Clean up OSL_ASSERT, DBG_ASSERT
Change-Id: Ie4f1362510636006cae8a680b3ad2bbfa93e854b Reviewed-on: https://gerrit.libreoffice.org/70449 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 93a07f9ed637..f5c387b66404 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -222,7 +222,7 @@ bool SlideShow::IsRunning( ViewShell& rViewShell )
void SlideShow::CreateController( ViewShell* pViewSh, ::sd::View* pView, vcl::Window* pParentWindow )
{
- DBG_ASSERT( !mxController.is(), "sd::SlideShow::CreateController(), clean up old controller first!" );
+ SAL_INFO_IF( !mxController.is(), "sd.slideshow", "sd::SlideShow::CreateController(), clean up old controller first!" );
Reference< XPresentation2 > xThis( this );
@@ -648,8 +648,7 @@ void SAL_CALL SlideShow::end()
// The mbIsInStartup flag should have been reset during the start of the
// slide show. Reset it here just in case that something has horribly
// gone wrong.
- OSL_ASSERT(!mbIsInStartup);
- mbIsInStartup = false;
+ assert(!mbIsInStartup);
rtl::Reference< SlideshowImpl > xController( mxController );
if( !xController.is() )
@@ -801,7 +800,7 @@ void SAL_CALL SlideShow::startWithArguments(const Sequence< PropertyValue >& rAr
// Stop a running show before starting a new one.
if( mxController.is() )
{
- OSL_ASSERT(!mbIsInStartup);
+ assert(!mbIsInStartup);
end();
}
else if (mbIsInStartup)