sd/source/ui/unoidl/randomnode.cxx |   25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

New commits:
commit 4487e60a4a4928430fb743601e73fffa86fe7792
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Sep 1 15:13:38 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Sep 1 20:34:12 2024 +0200

    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.mcnam...@collabora.com>

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

Reply via email to