diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-29 14:43:16 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-29 14:43:16 -0600 |
commit | 520ece21644c4f3a97f722e351fce382c1661183 (patch) | |
tree | 1247ef37d801e3fe29254924640008c4dbf4d587 /src/item.cc | |
parent | 5517871144e61ec1c7bad8f4dd96e0672e63f9d1 (diff) | |
download | fork-ledger-520ece21644c4f3a97f722e351fce382c1661183.tar.gz fork-ledger-520ece21644c4f3a97f722e351fce382c1661183.tar.bz2 fork-ledger-520ece21644c4f3a97f722e351fce382c1661183.zip |
Fixed problem with the Python build
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 7 |
1 files changed, 2 insertions, 5 deletions
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<value_t> 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) { |