aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-07 11:43:52 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-07 11:43:52 +0100
commit4eb9754117cf6d1fe9985fc1950ffbaf943fcafc (patch)
tree0190e687660b61af63540158f89c8c4ebd539659
parent0a0afc97925e6c8df3cedd5a4c3dee60a9673785 (diff)
downloadpaludis-4eb9754117cf6d1fe9985fc1950ffbaf943fcafc.tar.gz
paludis-4eb9754117cf6d1fe9985fc1950ffbaf943fcafc.tar.xz
Doesn't need to be public
-rw-r--r--paludis/dep_spec_data.cc5
-rw-r--r--paludis/dep_spec_data.hh2
2 files changed, 4 insertions, 3 deletions
diff --git a/paludis/dep_spec_data.cc b/paludis/dep_spec_data.cc
index 8349265..e02a69a 100644
--- a/paludis/dep_spec_data.cc
+++ b/paludis/dep_spec_data.cc
@@ -586,6 +586,7 @@ MutablePackageDepSpecData::unconstrain_keys()
MutablePackageDepSpecData::operator PackageDepSpec() const
{
- return PackageDepSpec(std::make_shared<MutablePackageDepSpecData>(*this));
+ /* convoluted because it's private... */
+ PackageDepSpecData * data(new MutablePackageDepSpecData(*this));
+ return PackageDepSpec(std::shared_ptr<PackageDepSpecData>(data));
}
-
diff --git a/paludis/dep_spec_data.hh b/paludis/dep_spec_data.hh
index 173c4e4..45cd81f 100644
--- a/paludis/dep_spec_data.hh
+++ b/paludis/dep_spec_data.hh
@@ -241,7 +241,7 @@ namespace paludis
* \ingroup g_dep_spec
*/
class PALUDIS_VISIBLE MutablePackageDepSpecData :
- public PackageDepSpecData
+ private PackageDepSpecData
{
public:
explicit MutablePackageDepSpecData(const PackageDepSpecDataOptions &);