From 156da5b55362db37d4e61a22e43e489e48797452 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 12 Nov 2020 13:16:29 +0100 Subject: tdf#123936 Formatting files in module slideshow with clang-format Change-Id: I108be5e01ed319f42912a6762ebceb97795113ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105708 Reviewed-by: Christian Lohmaier Tested-by: Jenkins --- slideshow/source/inc/animationnode.hxx | 31 ++++++++++++++----------------- slideshow/source/inc/event.hxx | 15 +++++++++------ slideshow/source/inc/framerate.hxx | 4 ++-- 3 files changed, 25 insertions(+), 25 deletions(-) (limited to 'slideshow/source/inc') diff --git a/slideshow/source/inc/animationnode.hxx b/slideshow/source/inc/animationnode.hxx index ea08b552b4fc..14fd21ce9894 100644 --- a/slideshow/source/inc/animationnode.hxx +++ b/slideshow/source/inc/animationnode.hxx @@ -24,11 +24,10 @@ #include #include - -namespace slideshow::internal { - +namespace slideshow::internal +{ class AnimationNode; -typedef ::std::shared_ptr< AnimationNode > AnimationNodeSharedPtr; +typedef ::std::shared_ptr AnimationNodeSharedPtr; /** This interface is used to mirror every XAnimateNode object in the presentation core. @@ -38,26 +37,26 @@ class AnimationNode : public Disposable public: /** The current state of this AnimationNode */ - enum NodeState { + enum NodeState + { /// Invalid state, node is disposed or otherwise invalid - INVALID =0, + INVALID = 0, /// Unresolved start time - UNRESOLVED =1, + UNRESOLVED = 1, /// Resolved start time, node will start eventually - RESOLVED =2, + RESOLVED = 2, /// Node is active - ACTIVE =4, + ACTIVE = 4, /// Node is frozen (no longer active, but changes remain in place) - FROZEN =8, + FROZEN = 8, /// Node has completed an active lifecycle, /// and any effect is removed from the document - ENDED =16 + ENDED = 16 }; /** Query the corresponding XAnimationNode. */ - virtual css::uno::Reference< css::animations::XAnimationNode > - getXAnimationNode() const = 0; + virtual css::uno::Reference getXAnimationNode() const = 0; /** Init this node @@ -125,15 +124,13 @@ public: @param rNotifee AnimationNode to notify */ - virtual bool registerDeactivatingListener( - const AnimationNodeSharedPtr& rNotifee ) = 0; + virtual bool registerDeactivatingListener(const AnimationNodeSharedPtr& rNotifee) = 0; /** Called to notify another AnimationNode's deactivation @param rNotifier The instance who calls this method. */ - virtual void notifyDeactivating( - const AnimationNodeSharedPtr& rNotifier ) = 0; + virtual void notifyDeactivating(const AnimationNodeSharedPtr& rNotifier) = 0; /** Called by the container to remove the animation effect to make the painted shape correct if it restart because diff --git a/slideshow/source/inc/event.hxx b/slideshow/source/inc/event.hxx index c60ba20f80a9..9377bc9d7f25 100644 --- a/slideshow/source/inc/event.hxx +++ b/slideshow/source/inc/event.hxx @@ -24,14 +24,17 @@ #include #include -namespace slideshow::internal { - +namespace slideshow::internal +{ /** Definition of Event interface */ class Event : public Disposable { public: - Event (const OUString& rsDescription) : msDescription(rsDescription) {} + Event(const OUString& rsDescription) + : msDescription(rsDescription) + { + } /** Execute the event. @@ -61,7 +64,7 @@ public: @return the time instant in seconds, on which this event is to be fired. */ - virtual double getActivationTime( double nCurrentTime ) const = 0; + virtual double getActivationTime(double nCurrentTime) const = 0; const OUString& GetDescription() const { return msDescription; } @@ -69,8 +72,8 @@ private: const OUString msDescription; }; -typedef ::std::shared_ptr< Event > EventSharedPtr; -typedef ::std::vector< EventSharedPtr > VectorOfEvents; +typedef ::std::shared_ptr EventSharedPtr; +typedef ::std::vector VectorOfEvents; } // namespace presentation::internal diff --git a/slideshow/source/inc/framerate.hxx b/slideshow/source/inc/framerate.hxx index af861dce60c8..0d7e98126fbc 100644 --- a/slideshow/source/inc/framerate.hxx +++ b/slideshow/source/inc/framerate.hxx @@ -22,8 +22,8 @@ #include -namespace slideshow::internal { - +namespace slideshow::internal +{ /** Some frame rate related data. */ class FrameRate -- cgit collabora/lov-6.4'>distro/collabora/lov-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-10-24loplugin:includeform: vcl (macOS)Stephan Bergmann