diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-01-19 13:13:07 +1100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-21 15:38:53 +0000 |
commit | 1d621d363cf966648fc5ed551dbc95de3e70e89c (patch) | |
tree | 639450dfb10cf7166ac79e76b6bac1d74a4a3764 /sd/source | |
parent | 2e10f314d0d3c3d159f8140fc9073fc86fbcfa17 (diff) |
Change EnableNoYieldMode(bool) to better names
It makes no sense to disable something via an Enable function.
I have split the function into Enable and Disable functions, and
update the code accordingly.
Conflicts:
include/vcl/svapp.hxx
Change-Id: Ic05d69796f43e802a4a2a16aaca44433b6eaa018
Reviewed-on: https://gerrit.libreoffice.org/7525
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 87e6435bc2a7..2bc4d722770b 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -760,7 +760,7 @@ void SAL_CALL SlideshowImpl::disposing() setActiveXToolbarsVisible( sal_True ); - Application::EnableNoYieldMode(false); + Application::DisableNoYieldMode(); Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener)); mbDisposed = true; @@ -1855,7 +1855,7 @@ IMPL_LINK_NOARG(SlideshowImpl, PostYieldListener) // prevent me from deletion when recursing (App::Reschedule does) const rtl::Reference<SlideshowImpl> this_(this); - Application::EnableNoYieldMode(false); + Application::DisableNoYieldMode(); Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener)); Application::Reschedule(true); // fix for fdo#32861 - process // *all* outstanding events after @@ -1896,7 +1896,7 @@ sal_Int32 SlideshowImpl::updateSlideShow (void) if (::basegfx::fTools::equalZero(fUpdate)) { // Use post yield listener for short update intervalls. - Application::EnableNoYieldMode(true); + Application::EnableNoYieldMode(); Application::AddPostYieldListener(LINK(this, SlideshowImpl, PostYieldListener)); } else @@ -1917,7 +1917,7 @@ sal_Int32 SlideshowImpl::updateSlideShow (void) // integer may lead to zero value.) OSL_ASSERT(static_cast<sal_uLong>(fUpdate * 1000.0) > 0); - Application::EnableNoYieldMode(false); + Application::DisableNoYieldMode(); Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener)); // Use a timer for the asynchronous callback. |