LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
This commit is contained in:
@@ -52,6 +52,11 @@ DocumentT::DocumentT(const std::string& name)
|
||||
document = name;
|
||||
}
|
||||
|
||||
DocumentT::DocumentT(const DocumentT& doc)
|
||||
{
|
||||
document = doc.document;
|
||||
}
|
||||
|
||||
DocumentT::~DocumentT()
|
||||
{
|
||||
}
|
||||
@@ -125,6 +130,12 @@ ViewProviderT::ViewProviderT(ViewProviderDocumentObject* obj)
|
||||
document = obj->getObject()->getDocument()->getName();
|
||||
}
|
||||
|
||||
ViewProviderT::ViewProviderT(const ViewProviderT& vp)
|
||||
{
|
||||
object = vp.object;
|
||||
document = vp.document;
|
||||
}
|
||||
|
||||
ViewProviderT::~ViewProviderT()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user