LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
This commit is contained in:
@@ -55,6 +55,11 @@ DocumentT::DocumentT(const std::string& name)
|
||||
document = name;
|
||||
}
|
||||
|
||||
DocumentT::DocumentT(const DocumentT& doc)
|
||||
{
|
||||
document = doc.document;
|
||||
}
|
||||
|
||||
DocumentT::~DocumentT()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ public:
|
||||
DocumentT(Document*);
|
||||
/*! Constructor */
|
||||
DocumentT(const std::string&);
|
||||
/*! Constructor */
|
||||
DocumentT(const DocumentT&);
|
||||
/*! Destructor */
|
||||
~DocumentT();
|
||||
/*! Assignment operator */
|
||||
|
||||
Reference in New Issue
Block a user