From 4487e60a4a4928430fb743601e73fffa86fe7792 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 1 Sep 2024 15:13:38 +0100 Subject: forward argless ctor to the single arg ctor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and inline and remove init then Change-Id: I5c4d62ef84223cbb6a47df376be5b4512aacba7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172724 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/unoidl/randomnode.cxx | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index 68f3e96c8210..075fbf583b7b 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -72,8 +72,6 @@ public: explicit RandomAnimationNode( sal_Int16 nPresetClass ); RandomAnimationNode(); - void init( sal_Int16 nPresetClass ); - // XInitialization void SAL_CALL initialize( const Sequence< Any >& aArguments ) override; @@ -180,25 +178,20 @@ RandomAnimationNode::RandomAnimationNode( const RandomAnimationNode& rNode ) } RandomAnimationNode::RandomAnimationNode( sal_Int16 nPresetClass ) + : mnPresetClass(nPresetClass) + , mnFill(AnimationFill::DEFAULT) + , mnFillDefault(AnimationFill::INHERIT) + , mnRestart(AnimationRestart::DEFAULT) + , mnRestartDefault(AnimationRestart::INHERIT) + , mfAcceleration(0.0) + , mfDecelerate(0.0) + , mbAutoReverse(false) { - init( nPresetClass ); } RandomAnimationNode::RandomAnimationNode() + : RandomAnimationNode(1) { - init( 1 ); -} - -void RandomAnimationNode::init( sal_Int16 nPresetClass ) -{ - mnPresetClass = nPresetClass; - mnFill = AnimationFill::DEFAULT; - mnFillDefault = AnimationFill::INHERIT; - mnRestart = AnimationRestart::DEFAULT; - mnRestartDefault = AnimationRestart::INHERIT; - mfAcceleration = 0.0; - mfDecelerate = 0.0; - mbAutoReverse = false; } // XInitialization -- cgit