From 536e3e73228b6168437704ede89499406b87391d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 22:16:38 -0400 Subject: Added a new scope_value() inline helper function --- src/post.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/post.cc') diff --git a/src/post.cc b/src/post.cc index dd489cba..da892062 100644 --- a/src/post.cc +++ b/src/post.cc @@ -126,7 +126,7 @@ optional post_t::effective_date() const namespace { value_t get_this(post_t& post) { - return value_t(static_cast(&post)); + return scope_value(&post); } value_t get_is_calculated(post_t& post) { @@ -146,7 +146,7 @@ namespace { } value_t get_xact(post_t& post) { - return value_t(static_cast(post.xact)); + return scope_value(post.xact); } value_t get_xact_id(post_t& post) { -- cgit v1.2.3