From 28c65cda512135bde36542351533941b019b6ee8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 14:55:18 -0400 Subject: Store metadata values as value_t instead of string --- src/post.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/post.cc') diff --git a/src/post.cc b/src/post.cc index 3ef76f7f..2a8abddc 100644 --- a/src/post.cc +++ b/src/post.cc @@ -59,19 +59,19 @@ bool post_t::has_tag(const mask_t& tag_mask, return false; } -optional post_t::get_tag(const string& tag) const +optional post_t::get_tag(const string& tag) const { - if (optional value = item_t::get_tag(tag)) + if (optional value = item_t::get_tag(tag)) return value; if (xact) return xact->get_tag(tag); return none; } -optional post_t::get_tag(const mask_t& tag_mask, - const optional& value_mask) const +optional post_t::get_tag(const mask_t& tag_mask, + const optional& value_mask) const { - if (optional value = item_t::get_tag(tag_mask, value_mask)) + if (optional value = item_t::get_tag(tag_mask, value_mask)) return value; if (xact) return xact->get_tag(tag_mask, value_mask); @@ -715,7 +715,7 @@ void to_xml(std::ostream& out, const post_t& post) } { push_xml z(out, "value"); - out << y.guard(*pair.second.first); + to_xml(out, *pair.second.first); } } else { push_xml z(out, "tag"); -- cgit v1.2.3