diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-12 22:16:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 01:03:48 -0400 |
commit | 536e3e73228b6168437704ede89499406b87391d (patch) | |
tree | eb2193c64f8fb2253eb117eaf1870b52dd34ff1a /src/post.cc | |
parent | 6ef755c1330c6e11476ea2e63b8388ad29efb4ef (diff) | |
download | fork-ledger-536e3e73228b6168437704ede89499406b87391d.tar.gz fork-ledger-536e3e73228b6168437704ede89499406b87391d.tar.bz2 fork-ledger-536e3e73228b6168437704ede89499406b87391d.zip |
Added a new scope_value() inline helper function
Diffstat (limited to 'src/post.cc')
-rw-r--r-- | src/post.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<date_t> post_t::effective_date() const namespace { value_t get_this(post_t& post) { - return value_t(static_cast<scope_t *>(&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<scope_t *>(post.xact)); + return scope_value(post.xact); } value_t get_xact_id(post_t& post) { |