diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-01 15:13:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-01 20:34:12 +0200 |
commit | 4487e60a4a4928430fb743601e73fffa86fe7792 (patch) | |
tree | 8aee0f0007cf9511dff94c9a4f8ccda9807b133e /sd/source | |
parent | d5c04238908c055dd5a04abc6d2b4a0430be8830 (diff) |
forward argless ctor to the single arg ctor
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 <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/unoidl/randomnode.cxx | 25 |
1 files changed, 9 insertions, 16 deletions
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 |