aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2006-11-28 21:02:29 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2006-11-28 21:02:29 +0000
commit057ce0bef81f7f95b09e464f3c6205c3f0b35dac (patch)
tree1a7d1e1af45a6b55f64afbc3caa20f2cefc457e7
parent848ea78620341d25ac54ea97d16c3ef48c5f68cd (diff)
downloadpaludis-057ce0bef81f7f95b09e464f3c6205c3f0b35dac.tar.gz
paludis-057ce0bef81f7f95b09e464f3c6205c3f0b35dac.tar.xz
Add a copy constructor to MetadataFile.
-rw-r--r--paludis/qa/metadata_file.cc7
-rw-r--r--paludis/qa/metadata_file.hh1
2 files changed, 8 insertions, 0 deletions
diff --git a/paludis/qa/metadata_file.cc b/paludis/qa/metadata_file.cc
index 8e409ac..ab5b288 100644
--- a/paludis/qa/metadata_file.cc
+++ b/paludis/qa/metadata_file.cc
@@ -106,6 +106,13 @@ MetadataFile::MetadataFile(const std::string & text) :
_imp->handle_node(xml_doc, xmlDocGetRootElement(xml_doc));
}
+MetadataFile::MetadataFile(const MetadataFile & other) :
+ PrivateImplementationPattern<MetadataFile>(new Implementation<MetadataFile>)
+{
+ _imp->herds = other._imp->herds;
+ _imp->maintainers = other._imp->maintainers;
+}
+
MetadataFile::~MetadataFile()
{
}
diff --git a/paludis/qa/metadata_file.hh b/paludis/qa/metadata_file.hh
index 457a770..996a621 100644
--- a/paludis/qa/metadata_file.hh
+++ b/paludis/qa/metadata_file.hh
@@ -40,6 +40,7 @@ namespace paludis
public:
MetadataFile(const FSEntry & location);
MetadataFile(const std::string & text);
+ MetadataFile(const MetadataFile & other);
~MetadataFile();
typedef libwrapiter::ForwardIterator<MetadataFile, const std::string> HerdsIterator;