aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-08 20:08:37 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-13 14:49:26 +0100
commit172b51622b6d3ec4607dd7e0efd4733fd3c374a4 (patch)
treee067f8332a683a1b95fd21a710e3f6c88f6b06c2
parentd6e4e464eeef466e4851056efe4e964a8b9ee266 (diff)
downloadpaludis-172b51622b6d3ec4607dd7e0efd4733fd3c374a4.tar.gz
paludis-172b51622b6d3ec4607dd7e0efd4733fd3c374a4.tar.xz
add copy ctor
-rw-r--r--paludis/dep_spec.cc6
-rw-r--r--paludis/dep_spec.hh1
2 files changed, 7 insertions, 0 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index d285a54..2d41312 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -287,6 +287,12 @@ BlockDepSpec::BlockDepSpec(const std::tr1::shared_ptr<const PackageDepSpec> & a,
{
}
+BlockDepSpec::BlockDepSpec(const BlockDepSpec & other) :
+ StringDepSpec(other.text()),
+ _spec(other.blocked_spec())
+{
+}
+
std::ostream &
paludis::operator<< (std::ostream & s, const PlainTextDepSpec & a)
{
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 5055ea4..7ae28ec 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -886,6 +886,7 @@ namespace paludis
BlockDepSpec(const std::tr1::shared_ptr<const PackageDepSpec> & spec);
BlockDepSpec(const std::tr1::shared_ptr<const PackageDepSpec> & spec, const std::string & text);
+ BlockDepSpec(const BlockDepSpec &);
///\}