Skip to content

Commit

Permalink
App: [skip ci] add further constructor to SubObjectT
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 28, 2020
1 parent eb4c101 commit 549b424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/App/DocumentObserver.cpp
Expand Up @@ -275,7 +275,13 @@ SubObjectT::SubObjectT(SubObjectT &&other)

SubObjectT::SubObjectT(const DocumentObject *obj, const char *s)
:DocumentObjectT(obj),subname(s?s:"")
{}
{
}

SubObjectT::SubObjectT(const DocumentObjectT& obj, const char *s)
:DocumentObjectT(obj),subname(s?s:"")
{
}

SubObjectT::SubObjectT(const char *docName, const char *objName, const char *s)
:DocumentObjectT(docName,objName), subname(s?s:"")
Expand Down
3 changes: 3 additions & 0 deletions src/App/DocumentObserver.h
Expand Up @@ -157,6 +157,9 @@ class AppExport SubObjectT : public DocumentObjectT
/*! Constructor */
SubObjectT(SubObjectT &&);

/*! Constructor */
SubObjectT(const DocumentObjectT & obj, const char *subname);

/*! Constructor */
SubObjectT(const DocumentObject*, const char *subname);

Expand Down

0 comments on commit 549b424

Please sign in to comment.