summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-05-19 11:09:52 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-05-20 10:43:27 +0200
commitbed687cefec7e1aa52e38dec66546ce7eeadfe4a (patch)
treea00c545915e242bbb08c010408cebf849c7bcd17
parentd3631c6d5b3f76bc9879af9ec4b283c7e105f3b1 (diff)
Use default ctor for BMRepeater
This also makes sure that the fix from 69756405416cc9a643f75cc9e158ed9efc98d7d3 will arrive in 5.15 Pick-to: 5.15 Change-Id: Idf96508c13f4fb13649c7deef92a37dbf052763f Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
-rw-r--r--src/bodymovin/bmrepeater.cpp8
-rw-r--r--src/bodymovin/bmrepeater_p.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/src/bodymovin/bmrepeater.cpp b/src/bodymovin/bmrepeater.cpp
index 0df8cd7..53d1d3a 100644
--- a/src/bodymovin/bmrepeater.cpp
+++ b/src/bodymovin/bmrepeater.cpp
@@ -29,14 +29,6 @@
#include "bmrepeater_p.h"
-BMRepeater::BMRepeater(const BMRepeater &other)
- : BMShape(other),
- m_copies(other.m_copies),
- m_offset(other.m_offset),
- m_transform(other.m_transform)
-{
-}
-
BMRepeater::BMRepeater(const QJsonObject &definition, BMBase *parent)
{
setParent(parent);
diff --git a/src/bodymovin/bmrepeater_p.h b/src/bodymovin/bmrepeater_p.h
index de4f9eb..5657f6c 100644
--- a/src/bodymovin/bmrepeater_p.h
+++ b/src/bodymovin/bmrepeater_p.h
@@ -54,7 +54,7 @@ class BODYMOVIN_EXPORT BMRepeater : public BMShape
{
public:
BMRepeater() = default;
- explicit BMRepeater(const BMRepeater &other);
+ explicit BMRepeater(const BMRepeater &other) = default;
BMRepeater(const QJsonObject &definition, BMBase *parent = nullptr);
BMBase *clone() const override;