Skip to content

Commit dc8859b

Browse files
committed
Use default constructor
1 parent 757173b commit dc8859b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Detectors/DCS/include/DetectorsDCS/DataPointCompositeObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct DataPointCompositeObject final {
8383
/**
8484
* Copy constructor
8585
*/
86-
DataPointCompositeObject(const DataPointCompositeObject& src) noexcept : DataPointCompositeObject(src.id, src.data) {}
86+
DataPointCompositeObject(const DataPointCompositeObject& src) noexcept = default;
8787

8888
DataPointCompositeObject& operator=(const DataPointCompositeObject& src) noexcept
8989
{

Detectors/DCS/include/DetectorsDCS/DataPointIdentifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class DataPointIdentifier final
8585
/**
8686
* A copy constructor for DataPointIdentifier.
8787
*/
88-
DataPointIdentifier(const DataPointIdentifier& src) noexcept : DataPointIdentifier(src.pt1, src.pt2, src.pt3, src.pt4, src.pt5, src.pt6, src.pt7, src.pt8) {}
88+
DataPointIdentifier(const DataPointIdentifier& src) noexcept = default;
8989

9090
DataPointIdentifier& operator=(const DataPointIdentifier& src) noexcept
9191
{

0 commit comments

Comments
 (0)