Skip to content

Commit

Permalink
Aliasing non-smart-pointer for XMLBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mendenhall committed Jun 29, 2016
1 parent e10eb36 commit 4dcca53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GeneralUtils/XMLBuilder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public:
shared_ptr<XMLBuilder> makeXML();
/// Add child node
virtual void addChild(const shared_ptr<XMLProvider>& C) { children.push_back(C); }
/// Add externally-memory-managed child node
virtual void addChild(XMLProvider* C) { addChild(shared_ptr<XMLProvider>(shared_ptr<XMLProvider>(), C)); }
/// Add a tag attribute
virtual void addAttr(const string& nm, const string& val) { xattrs[nm] = val; }
/// Add numerical attribute
Expand Down

0 comments on commit 4dcca53

Please sign in to comment.