Kaydet (Commit) 3a95902b authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constantparam in slideshow

Change-Id: If6c9b8e551d6e6dc857f634e1e8db092541c1031
üst 435d6d50
......@@ -212,9 +212,9 @@ namespace internal
}
}
::std::shared_ptr<ScreenUpdater::UpdateLock> ScreenUpdater::createLock (const bool bStartLocked)
::std::shared_ptr<ScreenUpdater::UpdateLock> ScreenUpdater::createLock()
{
return ::std::shared_ptr<ScreenUpdater::UpdateLock>(new ::UpdateLock(*this, bStartLocked));
return ::std::shared_ptr<ScreenUpdater::UpdateLock>(new ::UpdateLock(*this, false/*bStartLocked*/));
}
......
......@@ -50,7 +50,7 @@ ShapeManagerImpl::ShapeManagerImpl( EventMultiplexer& rMultiplexer,
{
}
void ShapeManagerImpl::activate( bool bSlideBackgoundPainted )
void ShapeManagerImpl::activate()
{
if( !mbEnabled )
{
......@@ -72,7 +72,7 @@ void ShapeManagerImpl::activate( bool bSlideBackgoundPainted )
this->cursorChanged( rListener.first, rListener.second );
if( mpLayerManager )
mpLayerManager->activate( bSlideBackgoundPainted );
mpLayerManager->activate( true/*bSlideBackgoundPainted*/ );
}
}
......
......@@ -71,13 +71,11 @@ public:
/** Enables event listening.
@param bSlideBackgoundPainted
When true, the initial slide content on the background layer
The initial slide content on the background layer
is already rendered (e.g. from a previous slide
transition). When false, slide renders initial content of
slide.
transition).
*/
void activate( bool bSlideBackgoundPainted );
void activate();
/** Disables event listening.
*/
......
......@@ -432,7 +432,7 @@ void SlideImpl::show( bool bSlideBackgoundPainted )
// slide. Also enables LayerManager to record updates. Currently,
// never let LayerManager render initial slide content, use
// buffered slide bitmaps instead.
mpShapeManager->activate( true );
mpShapeManager->activate();
// render slide to screen, if requested
......
......@@ -1240,7 +1240,7 @@ sal_Bool SlideShowImpl::previousEffect() throw (uno::RuntimeException, std::exce
else
{
return maEffectRewinder.rewind(
maScreenUpdater.createLock(false),
maScreenUpdater.createLock(),
[this]() { return this->redisplayCurrentSlide(); },
[this]() { return this->rewindEffectToPreviousSlide(); } );
}
......
......@@ -110,12 +110,8 @@ namespace slideshow
/** Call this method to create a lock instead of calling
lockUpdates() and unlockUpdates() directly.
@param bStartLocked
When <TRUE/> then the UpdateLock is created already
locked. When <FALSE/> then Activate() has to be called in order
to lock the lock.
*/
::std::shared_ptr<UpdateLock> createLock (const bool bStartLocked);
::std::shared_ptr<UpdateLock> createLock();
/** Lock updates to prevent intermediate repaints.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment