From fbb3f88df5b9ee64f2aacbe758a481c5d91d0fed Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 5 Dec 2016 08:59:33 +0100 Subject: loplugin:unnecessaryoverride (dtors) in slideshow Change-Id: I5c4bc26bc51347e453ce69913edc52cf1f1aa821 --- slideshow/source/engine/effectrewinder.cxx | 4 ++-- slideshow/source/engine/shapes/drawinglayeranimation.cxx | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'slideshow') diff --git a/slideshow/source/engine/effectrewinder.cxx b/slideshow/source/engine/effectrewinder.cxx index 19106567127b..96ba0e048281 100644 --- a/slideshow/source/engine/effectrewinder.cxx +++ b/slideshow/source/engine/effectrewinder.cxx @@ -43,7 +43,7 @@ class RewinderEventHandler : public EventHandler public: typedef ::std::function Action; explicit RewinderEventHandler (const Action& rAction) : maAction(rAction) {} - virtual ~RewinderEventHandler() override {} + private: const Action maAction; virtual bool handleEvent() override { return maAction(); } @@ -55,7 +55,7 @@ class RewinderAnimationEventHandler : public AnimationEventHandler public: typedef ::std::function Action; explicit RewinderAnimationEventHandler (const Action& rAction) : maAction(rAction) {} - virtual ~RewinderAnimationEventHandler() override {} + private: const Action maAction; virtual bool handleAnimationEvent (const AnimationNodeSharedPtr& rpNode) override diff --git a/slideshow/source/engine/shapes/drawinglayeranimation.cxx b/slideshow/source/engine/shapes/drawinglayeranimation.cxx index 63d1787474cb..0ca3695d8b99 100644 --- a/slideshow/source/engine/shapes/drawinglayeranimation.cxx +++ b/slideshow/source/engine/shapes/drawinglayeranimation.cxx @@ -131,8 +131,6 @@ double ScrollTextAnimNode::GetStateAtRelativeTime( class ActivityImpl : public Activity { public: - virtual ~ActivityImpl() override; - ActivityImpl( SlideShowContext const& rContext, std::shared_ptr const& pWakeupEvent, @@ -849,10 +847,6 @@ bool ActivityImpl::enableAnimations() return maContext.mrActivitiesQueue.addActivity( std::dynamic_pointer_cast(shared_from_this()) ); } -ActivityImpl::~ActivityImpl() -{ -} - void ActivityImpl::dispose() { if( !mbIsDisposed ) -- cgit v1.2.3