summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/xml++.h
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-05-23 00:52:25 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-05-23 00:52:25 +0000
commit1401a527643c4bd8712b9612821f5df7a408481e (patch)
tree4f9fcd02491766a5546d167373ae458ab07c0ae7 /libs/pbd/pbd/xml++.h
parent8b4eea3c7714965c081e9316df7e346e6f649ec2 (diff)
* changed return type for pbd/xml++ xpath support to use boost::shared_ptr
git-svn-id: svn://localhost/ardour2/branches/3.0@3402 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/xml++.h')
-rw-r--r--libs/pbd/pbd/xml++.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h
index 1aae15bbc3..c3fb513dfe 100644
--- a/libs/pbd/pbd/xml++.h
+++ b/libs/pbd/pbd/xml++.h
@@ -12,6 +12,7 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
+#include <boost/shared_ptr.hpp>
#ifndef __XML_H
#define __XML_H
@@ -25,6 +26,7 @@ class XMLNode;
class XMLProperty;
typedef list<XMLNode *> XMLNodeList;
+typedef list<boost::shared_ptr<XMLNode> > XMLSharedNodeList;
typedef XMLNodeList::iterator XMLNodeIterator;
typedef XMLNodeList::const_iterator XMLNodeConstIterator;
typedef list<XMLProperty*> XMLPropertyList;
@@ -93,7 +95,7 @@ public:
XMLNode *child (const char*) const;
void add_child_nocopy (XMLNode&);
- XMLNodeList *find(const std::string xpath) const;
+ boost::shared_ptr<XMLSharedNodeList> find(const std::string xpath) const;
const XMLPropertyList & properties() const { return _proplist; };
XMLProperty *property(const char * );