aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-13 11:24:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-13 11:24:45 +0100
commite7e7b6edd8ccb6f314cef1f6d7abf8352616b38e (patch)
tree33f3ab4fc93139e364e08178a5503022169476a9 /ruby
parente37860d45510f9fc35649e9c00ced04900457f14 (diff)
downloadpaludis-e7e7b6edd8ccb6f314cef1f6d7abf8352616b38e.tar.gz
paludis-e7e7b6edd8ccb6f314cef1f6d7abf8352616b38e.tar.xz
Rename spec tree root to top
Diffstat (limited to 'ruby')
-rw-r--r--ruby/dep_spec.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby/dep_spec.cc b/ruby/dep_spec.cc
index b16ae4bda..6f6636175 100644
--- a/ruby/dep_spec.cc
+++ b/ruby/dep_spec.cc
@@ -297,7 +297,7 @@ namespace
result(r)
{
if (result)
- add_to = result->root();
+ add_to = result->top();
std::shared_ptr<WrappedSpecBase> * p;
Data_Get_Struct(val, std::shared_ptr<WrappedSpecBase>, p);
@@ -357,7 +357,7 @@ namespace
static void handle(ValueToTree<H_> * const t, const WrappedSpec<AllDepSpec> & spec)
{
t->result.reset(new H_(spec.spec()));
- t->add_to = t->result->root();
+ t->add_to = t->result->top();
}
};
@@ -1415,7 +1415,7 @@ paludis::ruby::dep_tree_to_value(const std::shared_ptr<const T_> & m)
try
{
TreeToValue v;
- m->root()->accept(v);
+ m->top()->accept(v);
std::shared_ptr<const WrappedSpecBase> * ptr(new std::shared_ptr<const WrappedSpecBase>(v.wrapped));
return Data_Wrap_Struct(v.klass, 0, &Common<std::shared_ptr<const WrappedSpecBase> >::free, ptr);
}