App: [skip ci] add overloaded constructor of DocumentObjectT
This commit is contained in:
@@ -123,6 +123,13 @@ DocumentObjectT::DocumentObjectT(const Property* prop)
|
||||
*this = prop;
|
||||
}
|
||||
|
||||
DocumentObjectT::DocumentObjectT(const Document* doc, const std::string& objName)
|
||||
{
|
||||
if (doc && doc->getName())
|
||||
document = doc->getName();
|
||||
object = objName;
|
||||
}
|
||||
|
||||
DocumentObjectT::DocumentObjectT(const char *docName, const char *objName)
|
||||
{
|
||||
if(docName)
|
||||
|
||||
@@ -92,6 +92,8 @@ public:
|
||||
/*! Constructor */
|
||||
DocumentObjectT(const DocumentObject*);
|
||||
/*! Constructor */
|
||||
DocumentObjectT(const Document*, const std::string& objName);
|
||||
/*! Constructor */
|
||||
DocumentObjectT(const char *docName, const char *objName);
|
||||
/*! Constructor */
|
||||
DocumentObjectT(const Property*);
|
||||
|
||||
Reference in New Issue
Block a user