Skip to content
Snippets Groups Projects
Commit fcc9b0f8 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fix implicit copy constructor/assignment deprecation warning

parent 1f309c1c
No related branches found
No related tags found
1 merge request!1501Fixes for gcc 13, clang 16 and C++20
......@@ -141,10 +141,11 @@ public:
IAlgorithm* algorithm = nullptr;
std::string name;
std::string type;
unsigned long num = 0;
bool executing = false;
Leaf() = default;
Leaf( const Leaf& l ) = default;
unsigned long num = 0;
bool executing = false;
Leaf() = default;
Leaf( const Leaf& l ) = default;
Leaf& operator=( const Leaf& l ) = default;
Leaf( std::string t, std::string n ) : name( std::move( n ) ), type( std::move( t ) ) {}
};
// ==========================================================================
......
......@@ -127,16 +127,18 @@ public:
long third = INVALID;
ContainedLink() = default;
ContainedLink( ContainedObject* pObj, long hint, long link ) : first( pObj ), second( hint ), third( link ) {}
ContainedLink( const ContainedLink& copy ) = default;
ContainedLink& operator=( const ContainedLink& copy ) = default;
};
/// Definition of the contained link set
class IdentifiedLink {
public:
DataObject* first = nullptr;
long second = INVALID;
IdentifiedLink() = default;
IdentifiedLink( const IdentifiedLink& copy ) = default;
DataObject* first = nullptr;
long second = INVALID;
IdentifiedLink() = default;
IdentifiedLink( DataObject* pObj, long hint ) : first( pObj ), second( hint ) {}
IdentifiedLink( const IdentifiedLink& copy ) = default;
IdentifiedLink& operator=( const IdentifiedLink& copy ) = default;
};
typedef std::vector<ContainedLink> ContainedLinks;
......
......@@ -251,8 +251,9 @@ private:
bool temp{ true };
bool shared{ false };
THistID() = default;
THistID( const THistID& rhs ) = default;
THistID() = default;
THistID( const THistID& rhs ) = default;
THistID& operator=( const THistID& rhs ) = default;
THistID( std::string& i, bool& t, TObject* o, TFile* f ) : id( i ), obj( o ), file( f ), temp( t ) {}
THistID( std::string& i, bool& t, TObject* o, TFile* f, Mode m )
: id( i ), obj( o ), file( f ), mode( m ), temp( t ) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment