From 520ece21644c4f3a97f722e351fce382c1661183 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 29 Feb 2012 14:43:16 -0600 Subject: Fixed problem with the Python build --- src/item.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/item.cc') diff --git a/src/item.cc b/src/item.cc index a1b9b6bb..d123ee5a 100644 --- a/src/item.cc +++ b/src/item.cc @@ -338,13 +338,10 @@ namespace { } value_t get_seq(item_t& item) { - return item.pos ? long(item.pos->sequence) : 0L; + return long(item.seq()); } value_t get_id(item_t& item) { - if (optional ref = item.get_tag(_("UUID"))) - return *ref; - else - return item.pos ? long(item.pos->sequence) : 0L; + return string_value(item.id()); } value_t get_addr(item_t& item) { -- cgit v1.2.3