summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/effectrewinder.cxx32
-rw-r--r--slideshow/source/engine/effectrewinder.hxx22
-rw-r--r--slideshow/source/engine/rehearsetimingsactivity.cxx2
-rw-r--r--slideshow/source/engine/screenupdater.cxx12
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx3
-rw-r--r--slideshow/source/engine/shapes/shapeimporter.cxx4
-rw-r--r--slideshow/source/engine/shapes/viewbackgroundshape.cxx4
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx8
-rw-r--r--slideshow/source/engine/slide/layermanager.cxx4
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx2
-rw-r--r--slideshow/source/engine/slide/userpaintoverlay.cxx4
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx38
-rw-r--r--slideshow/source/engine/slideview.cxx12
-rw-r--r--slideshow/source/engine/tools.cxx3
-rw-r--r--slideshow/source/engine/transitions/slidechangebase.cxx2
-rw-r--r--slideshow/source/engine/usereventqueue.cxx4
-rw-r--r--slideshow/source/inc/event.hxx2
-rw-r--r--slideshow/source/inc/interruptabledelayevent.hxx2
-rw-r--r--slideshow/source/inc/screenupdater.hxx6
-rw-r--r--slideshow/source/inc/unoview.hxx2
-rw-r--r--slideshow/source/inc/usereventqueue.hxx2
-rw-r--r--slideshow/test/testview.cxx2
22 files changed, 84 insertions, 88 deletions
diff --git a/slideshow/source/engine/effectrewinder.cxx b/slideshow/source/engine/effectrewinder.cxx
index b5a29fa63217..94985986a02c 100644
--- a/slideshow/source/engine/effectrewinder.cxx
+++ b/slideshow/source/engine/effectrewinder.cxx
@@ -44,12 +44,12 @@ namespace {
class RewinderEventHandler : public EventHandler
{
public:
- typedef ::boost::function<bool(void)> Action;
+ typedef ::boost::function<bool()> Action;
RewinderEventHandler (const Action& rAction) : maAction(rAction) {}
- virtual ~RewinderEventHandler (void) {}
+ virtual ~RewinderEventHandler() {}
private:
const Action maAction;
- virtual bool handleEvent (void) SAL_OVERRIDE { return maAction(); }
+ virtual bool handleEvent() SAL_OVERRIDE { return maAction(); }
};
@@ -59,7 +59,7 @@ class RewinderAnimationEventHandler : public AnimationEventHandler
public:
typedef ::boost::function<bool(const AnimationNodeSharedPtr& rpNode)> Action;
RewinderAnimationEventHandler (const Action& rAction) : maAction(rAction) {}
- virtual ~RewinderAnimationEventHandler (void) {}
+ virtual ~RewinderAnimationEventHandler() {}
private:
const Action maAction;
virtual bool handleAnimationEvent (const AnimationNodeSharedPtr& rpNode) SAL_OVERRIDE
@@ -94,7 +94,7 @@ EffectRewinder::EffectRewinder (
-void EffectRewinder::initialize (void)
+void EffectRewinder::initialize()
{
// Add some event handlers so that we are informed when
// a) an animation is started (we then check whether that belongs to a
@@ -121,7 +121,7 @@ void EffectRewinder::initialize (void)
-EffectRewinder::~EffectRewinder (void)
+EffectRewinder::~EffectRewinder()
{
dispose();
}
@@ -129,7 +129,7 @@ EffectRewinder::~EffectRewinder (void)
-void EffectRewinder::dispose (void)
+void EffectRewinder::dispose()
{
if (mpAsynchronousRewindEvent)
{
@@ -170,8 +170,8 @@ void EffectRewinder::setRootAnimationNode (
bool EffectRewinder::rewind (
const ::boost::shared_ptr<ScreenUpdater::UpdateLock>& rpPaintLock,
- const ::boost::function<void(void)>& rSlideRewindFunctor,
- const ::boost::function<void(void)>& rPreviousSlideFunctor)
+ const ::boost::function<void()>& rSlideRewindFunctor,
+ const ::boost::function<void()>& rPreviousSlideFunctor)
{
mpPaintLock = rpPaintLock;
@@ -227,7 +227,7 @@ bool EffectRewinder::rewind (
-void EffectRewinder::skipAllMainSequenceEffects (void)
+void EffectRewinder::skipAllMainSequenceEffects()
{
// Do not allow nested rewinds.
if (mpAsynchronousRewindEvent)
@@ -243,7 +243,7 @@ void EffectRewinder::skipAllMainSequenceEffects (void)
this,
nTotalMainSequenceEffectCount,
false,
- ::boost::function<void(void)>()),
+ ::boost::function<void()>()),
"EffectRewinder::asynchronousRewind");
mrEventQueue.addEvent(mpAsynchronousRewindEvent);
}
@@ -251,7 +251,7 @@ void EffectRewinder::skipAllMainSequenceEffects (void)
-sal_Int32 EffectRewinder::countMainSequenceEffects (void)
+sal_Int32 EffectRewinder::countMainSequenceEffects()
{
// Determine the number of main sequence effects.
sal_Int32 nMainSequenceNodeCount (0);
@@ -294,7 +294,7 @@ sal_Int32 EffectRewinder::countMainSequenceEffects (void)
-void EffectRewinder::skipSingleMainSequenceEffects (void)
+void EffectRewinder::skipSingleMainSequenceEffects()
{
// This basically just starts the next effect and then skips over its
// animation.
@@ -307,7 +307,7 @@ void EffectRewinder::skipSingleMainSequenceEffects (void)
-bool EffectRewinder::resetEffectCount (void)
+bool EffectRewinder::resetEffectCount()
{
mnMainSequenceEffectCount = 0;
return false;
@@ -354,7 +354,7 @@ bool EffectRewinder::notifyAnimationStart (const AnimationNodeSharedPtr& rpNode)
void EffectRewinder::asynchronousRewind (
sal_Int32 nEffectCount,
const bool bRedisplayCurrentSlide,
- const boost::function<void(void)>& rSlideRewindFunctor)
+ const boost::function<void()>& rSlideRewindFunctor)
{
OSL_ASSERT(mpAsynchronousRewindEvent);
@@ -398,7 +398,7 @@ void EffectRewinder::asynchronousRewind (
void EffectRewinder::asynchronousRewindToPreviousSlide (
- const ::boost::function<void(void)>& rSlideRewindFunctor)
+ const ::boost::function<void()>& rSlideRewindFunctor)
{
OSL_ASSERT(mpAsynchronousRewindEvent);
diff --git a/slideshow/source/engine/effectrewinder.hxx b/slideshow/source/engine/effectrewinder.hxx
index d334e2a85761..e44a63faa58b 100644
--- a/slideshow/source/engine/effectrewinder.hxx
+++ b/slideshow/source/engine/effectrewinder.hxx
@@ -53,13 +53,13 @@ public:
EventMultiplexer& rEventMultiplexer,
EventQueue& rEventQueue,
UserEventQueue& rUserEventQueue);
- ~EffectRewinder (void);
+ ~EffectRewinder();
/** Call Dispose() before the ownder of an EffectRewinder object dies so
that the EffectRewinder can release all references to the owner.
*/
- void dispose (void);
+ void dispose();
/** Store the root node of the animation tree. It is used in
CountMainSequenceEffects() to count the number of main sequence
@@ -90,13 +90,13 @@ public:
*/
bool rewind (
const ::boost::shared_ptr<ScreenUpdater::UpdateLock>& rpPaintLock,
- const ::boost::function<void(void)>& rSlideRewindFunctor,
- const ::boost::function<void(void)>& rPreviousSlideFunctor);
+ const ::boost::function<void()>& rSlideRewindFunctor,
+ const ::boost::function<void()>& rPreviousSlideFunctor);
/** Call this method after gotoPreviousEffect() triggered a slide change
to the previous slide.
*/
- void skipAllMainSequenceEffects (void);
+ void skipAllMainSequenceEffects();
private:
EventMultiplexer& mrEventMultiplexer;
@@ -122,9 +122,9 @@ private:
bool mbNonUserTriggeredMainSequenceEffectSeen;
- void initialize (void);
+ void initialize();
- bool resetEffectCount (void);
+ bool resetEffectCount();
/** Called by listeners when an animation (not necessarily of a main
sequence effect) starts.
*/
@@ -133,11 +133,11 @@ private:
/** Count the number of effects (or effect groups) in the main effect
sequence.
*/
- sal_Int32 countMainSequenceEffects (void);
+ sal_Int32 countMainSequenceEffects();
/** Skip the next main sequence effect.
*/
- void skipSingleMainSequenceEffects (void);
+ void skipSingleMainSequenceEffects();
/** Rewind the last effect of the main effect sequence by replaying all
previous effects.
@@ -152,7 +152,7 @@ private:
void asynchronousRewind (
sal_Int32 nEffectCount,
const bool bRedisplayCurrentSlide,
- const boost::function<void(void)>& rSlideRewindFunctor);
+ const boost::function<void()>& rSlideRewindFunctor);
/** Go to the previous slide and replay all of its main sequence effects
(or effect groups).
@@ -160,7 +160,7 @@ private:
This functor is used to go to the previous slide.
*/
void asynchronousRewindToPreviousSlide (
- const ::boost::function<void(void)>& rPreviousSlideFunctor);
+ const ::boost::function<void()>& rPreviousSlideFunctor);
};
} } // end of namespace ::slideshow::internal
diff --git a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx
index 46fa58df63be..15d6e6e3fcb4 100644
--- a/slideshow/source/engine/rehearsetimingsactivity.cxx
+++ b/slideshow/source/engine/rehearsetimingsactivity.cxx
@@ -475,7 +475,7 @@ void RehearseTimingsActivity::paint( cppcanvas::CanvasSharedPtr const & canvas )
metaFile.WindStart();
cppcanvas::RendererSharedPtr renderer(
- cppcanvas::VCLFactory::getInstance().createRenderer(
+ cppcanvas::VCLFactory::createRenderer(
canvas, metaFile, cppcanvas::Renderer::Parameters() ) );
const bool succ = renderer->draw();
OSL_ASSERT( succ );
diff --git a/slideshow/source/engine/screenupdater.cxx b/slideshow/source/engine/screenupdater.cxx
index ddb8b597c307..5210182ed887 100644
--- a/slideshow/source/engine/screenupdater.cxx
+++ b/slideshow/source/engine/screenupdater.cxx
@@ -32,8 +32,8 @@ namespace {
{
public:
UpdateLock (::slideshow::internal::ScreenUpdater& rUpdater, const bool bStartLocked);
- virtual ~UpdateLock (void);
- virtual void Activate (void) SAL_OVERRIDE;
+ virtual ~UpdateLock();
+ virtual void Activate() SAL_OVERRIDE;
private:
::slideshow::internal::ScreenUpdater& mrUpdater;
bool mbIsActivated;
@@ -200,13 +200,13 @@ namespace internal
boost::mem_fn(&View::updateScreen) );
}
- void ScreenUpdater::lockUpdates (void)
+ void ScreenUpdater::lockUpdates()
{
++mpImpl->mnLockCount;
OSL_ASSERT(mpImpl->mnLockCount>0);
}
- void ScreenUpdater::unlockUpdates (void)
+ void ScreenUpdater::unlockUpdates()
{
OSL_ASSERT(mpImpl->mnLockCount>0);
if (mpImpl->mnLockCount > 0)
@@ -241,7 +241,7 @@ UpdateLock::UpdateLock (
-UpdateLock::~UpdateLock (void)
+UpdateLock::~UpdateLock()
{
if (mbIsActivated)
mrUpdater.unlockUpdates();
@@ -250,7 +250,7 @@ UpdateLock::~UpdateLock (void)
-void UpdateLock::Activate (void)
+void UpdateLock::Activate()
{
if ( ! mbIsActivated)
{
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index a3b89b7d55fe..7c77a3c15f2b 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -731,8 +731,7 @@ namespace slideshow
bool DrawShape::isContentChanged() const
{
- return mbForceUpdate ?
- true :
+ return mbForceUpdate ||
getUpdateFlags() != ViewShape::NONE;
}
diff --git a/slideshow/source/engine/shapes/shapeimporter.cxx b/slideshow/source/engine/shapes/shapeimporter.cxx
index eca253a0b4aa..b0826834ed84 100644
--- a/slideshow/source/engine/shapes/shapeimporter.cxx
+++ b/slideshow/source/engine/shapes/shapeimporter.cxx
@@ -497,8 +497,8 @@ void ShapeImporter::importPolygons(uno::Reference<beans::XPropertySet> const& xP
while(aIter != aEnd)
{
::cppcanvas::PolyPolygonSharedPtr pPolyPoly(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( (*aIter)->getCanvas(),
- aPoly ) );
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( (*aIter)->getCanvas(),
+ aPoly ) );
if( pPolyPoly )
{
pPolyPoly->setRGBALineColor( unoColor2RGBColor( nLineColor ).getIntegerColor() );
diff --git a/slideshow/source/engine/shapes/viewbackgroundshape.cxx b/slideshow/source/engine/shapes/viewbackgroundshape.cxx
index 05f255b28604..cdef389d59ce 100644
--- a/slideshow/source/engine/shapes/viewbackgroundshape.cxx
+++ b/slideshow/source/engine/shapes/viewbackgroundshape.cxx
@@ -84,7 +84,7 @@ namespace slideshow
// create a bitmap of appropriate size
::cppcanvas::BitmapSharedPtr pBitmap(
- ::cppcanvas::BaseGfxFactory::getInstance().createBitmap(
+ ::cppcanvas::BaseGfxFactory::createBitmap(
rDestinationCanvas,
aBmpSizePixel ) );
@@ -112,7 +112,7 @@ namespace slideshow
maBounds.getMinX(), maBounds.getMinY()));
::cppcanvas::RendererSharedPtr pRenderer(
- ::cppcanvas::VCLFactory::getInstance().createRenderer(
+ ::cppcanvas::VCLFactory::createRenderer(
pBitmapCanvas,
*rMtf.get(),
::cppcanvas::Renderer::Parameters() ) );
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index edbd66631a16..bb87b65534e6 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -158,9 +158,9 @@ namespace slideshow
}
}
- io_rCacheEntry.mpRenderer = ::cppcanvas::VCLFactory::getInstance().createRenderer( rDestinationCanvas,
- *rMtf.get(),
- aParms );
+ io_rCacheEntry.mpRenderer = ::cppcanvas::VCLFactory::createRenderer( rDestinationCanvas,
+ *rMtf.get(),
+ aParms );
io_rCacheEntry.mpMtf = rMtf;
io_rCacheEntry.mpDestinationCanvas = rDestinationCanvas;
@@ -619,7 +619,7 @@ namespace slideshow
{
// create a bitmap of appropriate size
::cppcanvas::BitmapSharedPtr pBitmap(
- ::cppcanvas::BaseGfxFactory::getInstance().createAlphaBitmap(
+ ::cppcanvas::BaseGfxFactory::createAlphaBitmap(
rDestinationCanvas,
aBmpSize ) );
diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx
index 1f3cbd6c69ae..c46b90245276 100644
--- a/slideshow/source/engine/slide/layermanager.cxx
+++ b/slideshow/source/engine/slide/layermanager.cxx
@@ -811,8 +811,8 @@ namespace slideshow
const bool bThisIsBackgroundDetached(
pCurrShape->isBackgroundDetached() );
- if( bLastWasBackgroundDetached == true &&
- bThisIsBackgroundDetached == false )
+ if( bLastWasBackgroundDetached &&
+ !bThisIsBackgroundDetached )
{
// discontinuity found - current shape needs to
// get into a new layer
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index 7e76377a4c97..079139377720 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -717,7 +717,7 @@ SlideBitmapSharedPtr SlideImpl::createCurrentSlideBitmap( const UnoViewSharedPtr
// create a bitmap of appropriate size
::cppcanvas::BitmapSharedPtr pBitmap(
- ::cppcanvas::BaseGfxFactory::getInstance().createBitmap(
+ ::cppcanvas::BaseGfxFactory::createBitmap(
pCanvas,
rBmpSize ) );
diff --git a/slideshow/source/engine/slide/userpaintoverlay.cxx b/slideshow/source/engine/slide/userpaintoverlay.cxx
index 7fa45a298012..cdab35a9a919 100644
--- a/slideshow/source/engine/slide/userpaintoverlay.cxx
+++ b/slideshow/source/engine/slide/userpaintoverlay.cxx
@@ -418,8 +418,8 @@ namespace slideshow
++aIter )
{
::cppcanvas::PolyPolygonSharedPtr pPolyPoly(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( (*aIter)->getCanvas(),
- aPoly ) );
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( (*aIter)->getCanvas(),
+ aPoly ) );
if( pPolyPoly )
{
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 3fc76235e7f7..98d74146908f 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -132,24 +132,24 @@ public:
/** Set the current time as the time at which the current frame is
displayed. From this the target time of the next frame is derived.
*/
- void MarkCurrentFrame (void);
+ void MarkCurrentFrame();
/** When there is time left until the next frame is due then wait.
Otherwise return without delay.
*/
- void Synchronize (void);
+ void Synchronize();
/** Activate frame synchronization when an animation is active and
frames are to be displayed in a steady rate. While active
Synchronize() will wait until the frame duration time has passed.
*/
- void Activate (void);
+ void Activate();
/** Deactivate frame sychronization when no animation is active and the
time between frames depends on user actions and other external
sources. While deactivated Synchronize() will return without delay.
*/
- void Deactivate (void);
+ void Deactivate();
private:
/** The timer that is used for synchronization is independent from the
@@ -337,7 +337,7 @@ private:
change takes place. Furthermore it does not show the slide
transition.
*/
- void redisplayCurrentSlide (void);
+ void redisplayCurrentSlide();
protected:
// WeakComponentImplHelperBase
@@ -403,13 +403,13 @@ private:
Do not call this method directly. Use WaitSymbolLock instead.
*/
- void requestWaitSymbol (void);
- void releaseWaitSymbol (void);
+ void requestWaitSymbol();
+ void releaseWaitSymbol();
class WaitSymbolLock {public:
WaitSymbolLock(SlideShowImpl& rSlideShowImpl) : mrSlideShowImpl(rSlideShowImpl)
{ mrSlideShowImpl.requestWaitSymbol(); }
- ~WaitSymbolLock(void)
+ ~WaitSymbolLock()
{ mrSlideShowImpl.releaseWaitSymbol(); }
private: SlideShowImpl& mrSlideShowImpl;
};
@@ -420,7 +420,7 @@ private:
/** This method is called asynchronously to finish the rewinding of an
effect to the previous slide that was initiated earlier.
*/
- void rewindEffectToPreviousSlide (void);
+ void rewindEffectToPreviousSlide();
/// all registered views
UnoViewContainer maViewContainer;
@@ -943,7 +943,7 @@ SlideSharedPtr SlideShowImpl::makeSlide(
return pSlide;
}
-void SlideShowImpl::requestWaitSymbol (void)
+void SlideShowImpl::requestWaitSymbol()
{
++mnWaitSymbolRequestCount;
OSL_ASSERT(mnWaitSymbolRequestCount>0);
@@ -960,7 +960,7 @@ void SlideShowImpl::requestWaitSymbol (void)
}
}
-void SlideShowImpl::releaseWaitSymbol (void)
+void SlideShowImpl::releaseWaitSymbol()
{
--mnWaitSymbolRequestCount;
OSL_ASSERT(mnWaitSymbolRequestCount>=0);
@@ -1201,7 +1201,7 @@ void SlideShowImpl::displaySlide(
maEffectRewinder.skipAllMainSequenceEffects();
}
-void SlideShowImpl::redisplayCurrentSlide (void)
+void SlideShowImpl::redisplayCurrentSlide()
{
osl::MutexGuard const guard( m_aMutex );
@@ -1267,7 +1267,7 @@ sal_Bool SlideShowImpl::previousEffect() throw (uno::RuntimeException, std::exce
}
}
-void SlideShowImpl::rewindEffectToPreviousSlide (void)
+void SlideShowImpl::rewindEffectToPreviousSlide()
{
// Show the wait symbol now and prevent it from showing temporary slide
// content while effects are played back.
@@ -1629,7 +1629,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
OSL_ENSURE( mbMouseVisible,
"setProperty(): User paint overrides invisible mouse" );
- if(nSwitchPenMode == true){
+ if(nSwitchPenMode){
// Switch to Pen Mode
maSwitchPenMode.reset( nSwitchPenMode );
maEventMultiplexer.notifySwitchPenMode();
@@ -1645,7 +1645,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
{
OSL_ENSURE( mbMouseVisible,
"setProperty(): User paint overrides invisible mouse" );
- if(nSwitchEraserMode == true){
+ if(nSwitchEraserMode){
// switch to Eraser mode
maSwitchEraserMode.reset( nSwitchEraserMode );
maEventMultiplexer.notifySwitchEraserMode();
@@ -2434,12 +2434,12 @@ FrameSynchronization::FrameSynchronization (const double nFrameDuration)
MarkCurrentFrame();
}
-void FrameSynchronization::MarkCurrentFrame (void)
+void FrameSynchronization::MarkCurrentFrame()
{
mnNextFrameTargetTime = maTimer.getElapsedTime() + mnFrameDuration;
}
-void FrameSynchronization::Synchronize (void)
+void FrameSynchronization::Synchronize()
{
if (mbIsActive)
{
@@ -2451,12 +2451,12 @@ void FrameSynchronization::Synchronize (void)
MarkCurrentFrame();
}
-void FrameSynchronization::Activate (void)
+void FrameSynchronization::Activate()
{
mbIsActive = true;
}
-void FrameSynchronization::Deactivate (void)
+void FrameSynchronization::Deactivate()
{
mbIsActive = false;
}
diff --git a/slideshow/source/engine/slideview.cxx b/slideshow/source/engine/slideview.cxx
index e63ee87f0d3d..04170a72cc1b 100644
--- a/slideshow/source/engine/slideview.cxx
+++ b/slideshow/source/engine/slideview.cxx
@@ -180,8 +180,7 @@ void clearRect( ::cppcanvas::CanvasSharedPtr const& pCanvas,
basegfx::B2DRange(rArea)));
::cppcanvas::PolyPolygonSharedPtr pPolyPoly(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( pCanvas,
- aPoly ) );
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( pCanvas, aPoly ) );
if( pPolyPoly )
{
@@ -197,8 +196,7 @@ void clearRect( ::cppcanvas::CanvasSharedPtr const& pCanvas,
if( pCanvas->getClip() )
{
::cppcanvas::PolyPolygonSharedPtr pPolyPoly2(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( pCliplessCanvas,
- aPoly ));
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( pCliplessCanvas, aPoly ));
if( pPolyPoly2 )
{
pPolyPoly2->setRGBALineColor( 0x008000FFU );
@@ -717,7 +715,7 @@ private:
virtual void _dispose() SAL_OVERRIDE;
virtual uno::Reference<presentation::XSlideShowView> getUnoView()const SAL_OVERRIDE;
virtual void setIsSoundEnabled (const bool bValue) SAL_OVERRIDE;
- virtual bool isSoundEnabled (void) const SAL_OVERRIDE;
+ virtual bool isSoundEnabled() const SAL_OVERRIDE;
// XEventListener:
virtual void SAL_CALL disposing( lang::EventObject const& evt )
@@ -782,7 +780,7 @@ SlideView::SlideView( const uno::Reference<presentation::XSlideShowView>& xView,
ENSURE_OR_THROW( mxView.is(),
"SlideView::SlideView(): Invalid view" );
- mpCanvas = cppcanvas::VCLFactory::getInstance().createSpriteCanvas(
+ mpCanvas = cppcanvas::VCLFactory::createSpriteCanvas(
xView->getCanvas() );
ENSURE_OR_THROW( mpCanvas,
"Could not create cppcanvas" );
@@ -1018,7 +1016,7 @@ void SlideView::setIsSoundEnabled (const bool bValue)
mbIsSoundEnabled = bValue;
}
-bool SlideView::isSoundEnabled (void) const
+bool SlideView::isSoundEnabled() const
{
return mbIsSoundEnabled;
}
diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx
index ea01de32691d..3bd58aeaf077 100644
--- a/slideshow/source/engine/tools.cxx
+++ b/slideshow/source/engine/tools.cxx
@@ -677,8 +677,7 @@ namespace slideshow
::basegfx::tools::createPolygonFromRect( rRect ));
::cppcanvas::PolyPolygonSharedPtr pPolyPoly(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( rCanvas,
- aPoly ) );
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( rCanvas, aPoly ) );
if( pPolyPoly )
{
diff --git a/slideshow/source/engine/transitions/slidechangebase.cxx b/slideshow/source/engine/transitions/slidechangebase.cxx
index dd0cabfbce4d..d78361ff5b97 100644
--- a/slideshow/source/engine/transitions/slidechangebase.cxx
+++ b/slideshow/source/engine/transitions/slidechangebase.cxx
@@ -105,7 +105,7 @@ SlideBitmapSharedPtr SlideChangeBase::createBitmap( const UnoViewSharedPtr&
// create a bitmap of appropriate size
cppcanvas::BitmapSharedPtr pBitmap(
- cppcanvas::BaseGfxFactory::getInstance().createBitmap(
+ cppcanvas::BaseGfxFactory::createBitmap(
pCanvas,
slideSizePixel ) );
diff --git a/slideshow/source/engine/usereventqueue.cxx b/slideshow/source/engine/usereventqueue.cxx
index 8404dc43f80a..af5f0529920d 100644
--- a/slideshow/source/engine/usereventqueue.cxx
+++ b/slideshow/source/engine/usereventqueue.cxx
@@ -247,7 +247,7 @@ public:
{ mbSkipTriggersNextEffect = bSkipTriggersNextEffect; }
/// Skip the current effect but do not trigger the next effect.
- void skipEffect (void) { handleEvent_impl(false); }
+ void skipEffect() { handleEvent_impl(false); }
private:
virtual bool handleEvent_impl() SAL_OVERRIDE
@@ -804,7 +804,7 @@ void UserEventQueue::registerMouseLeaveEvent( const EventSharedPtr& rEvent,
0.0 /* default prio */ ) );
}
-void UserEventQueue::callSkipEffectEventHandler (void)
+void UserEventQueue::callSkipEffectEventHandler()
{
::boost::shared_ptr<SkipEffectEventHandler> pHandler (
::boost::dynamic_pointer_cast<SkipEffectEventHandler>(mpSkipEffectEventHandler));
diff --git a/slideshow/source/inc/event.hxx b/slideshow/source/inc/event.hxx
index fad06458370d..60e9727a3874 100644
--- a/slideshow/source/inc/event.hxx
+++ b/slideshow/source/inc/event.hxx
@@ -64,7 +64,7 @@ public:
*/
virtual double getActivationTime( double nCurrentTime ) const = 0;
- const OUString& GetDescription (void) const { return msDescription; }
+ const OUString& GetDescription() const { return msDescription; }
private:
const OUString msDescription;
diff --git a/slideshow/source/inc/interruptabledelayevent.hxx b/slideshow/source/inc/interruptabledelayevent.hxx
index 7f22bbc2dbf8..a0cec175948d 100644
--- a/slideshow/source/inc/interruptabledelayevent.hxx
+++ b/slideshow/source/inc/interruptabledelayevent.hxx
@@ -62,7 +62,7 @@ namespace slideshow
// pass on to wrappee - this ensures that we return
// false on isCharged(), even if the other event has
// been fired outside our own fire() method
- return !mpEvent ? false : mpEvent->isCharged();
+ return mpEvent && mpEvent->isCharged();
}
virtual double getActivationTime( double nCurrentTime ) const SAL_OVERRIDE
diff --git a/slideshow/source/inc/screenupdater.hxx b/slideshow/source/inc/screenupdater.hxx
index 183d031f3235..ade40964a3ca 100644
--- a/slideshow/source/inc/screenupdater.hxx
+++ b/slideshow/source/inc/screenupdater.hxx
@@ -102,7 +102,7 @@ namespace slideshow
class UpdateLock {
public:
- virtual void Activate (void) = 0;
+ virtual void Activate() = 0;
protected:
~UpdateLock() {}
@@ -119,12 +119,12 @@ namespace slideshow
/** Lock updates to prevent intermediate repaints.
*/
- void lockUpdates (void);
+ void lockUpdates();
/** When called as often as lockUpdates() then commitUpdates()
is called.
*/
- void unlockUpdates (void);
+ void unlockUpdates();
private:
struct ImplScreenUpdater;
diff --git a/slideshow/source/inc/unoview.hxx b/slideshow/source/inc/unoview.hxx
index 0a96cd2580ab..81ad021dcdad 100644
--- a/slideshow/source/inc/unoview.hxx
+++ b/slideshow/source/inc/unoview.hxx
@@ -60,7 +60,7 @@ namespace slideshow
/** Return whether the sound play back is enabled.
*/
- virtual bool isSoundEnabled (void) const = 0;
+ virtual bool isSoundEnabled() const = 0;
/** Tell the view whether it may play sounds. Disabling this
can be used to prevent different views to play the same
diff --git a/slideshow/source/inc/usereventqueue.hxx b/slideshow/source/inc/usereventqueue.hxx
index a09c962ef2d3..61dbab91a710 100644
--- a/slideshow/source/inc/usereventqueue.hxx
+++ b/slideshow/source/inc/usereventqueue.hxx
@@ -222,7 +222,7 @@ public:
or key presses that trigger the next effect. This method allows the
skipping of effects to be triggered programatically.
*/
- void callSkipEffectEventHandler (void);
+ void callSkipEffectEventHandler();
private:
/** Generically register an event on one of the handlers.
diff --git a/slideshow/test/testview.cxx b/slideshow/test/testview.cxx
index b382fac2cfd3..0901f1c866b9 100644
--- a/slideshow/test/testview.cxx
+++ b/slideshow/test/testview.cxx
@@ -277,7 +277,7 @@ public:
mbDisposed = true;
}
- virtual bool isSoundEnabled (void) const
+ virtual bool isSoundEnabled() const
{
return true;
}