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-08 20:08:37 +0100
commit6277a9d9eb1c576ff16e3fcba415226f37bed786 (patch)
tree38f1c793b03481b29e9859065efe13ada5d5c23e
parent1f846d5ab7afac54766e5f744eee27edf05d5135 (diff)
downloadpaludis-6277a9d9eb1c576ff16e3fcba415226f37bed786.tar.gz
paludis-6277a9d9eb1c576ff16e3fcba415226f37bed786.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 &);
///\}