diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:25:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:25:56 -0400 |
commit | bdc180ff9cf4a0b953882117584f72d772fa362f (patch) | |
tree | d8753b2379b6cb14057def5834b24d01d286c7ef /src/account.cc | |
parent | 235f3cc0aed5b344dc4046543f326f0d99d44452 (diff) | |
download | fork-ledger-bdc180ff9cf4a0b953882117584f72d772fa362f.tar.gz fork-ledger-bdc180ff9cf4a0b953882117584f72d772fa362f.tar.bz2 fork-ledger-bdc180ff9cf4a0b953882117584f72d772fa362f.zip |
Don't use single code format characters anymore. Access to object details
will now always be done with "%(identifier)".
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/account.cc b/src/account.cc index f1ac713e..5f131fe1 100644 --- a/src/account.cc +++ b/src/account.cc @@ -175,19 +175,13 @@ expr_t::ptr_op_t account_t::lookup(const string& name) case 'd': if (name == "depth") return WRAP_FUNCTOR(get_wrapper<&get_depth>); + else if (name == "depth_spacer") + return WRAP_FUNCTOR(get_wrapper<&get_depth_spacer>); break; - case 'f': - if (name.find("fmt_") == 0) { - switch (name[4]) { - case '_': - return WRAP_FUNCTOR(get_wrapper<&get_depth_spacer>); - case 'T': - return WRAP_FUNCTOR(get_wrapper<&get_total>); - case 'a': - return WRAP_FUNCTOR(get_wrapper<&get_partial_name>); - } - } + case 'p': + if (name == "partial_account") + return WRAP_FUNCTOR(get_wrapper<&get_partial_name>); break; case 't': |