From bdc180ff9cf4a0b953882117584f72d772fa362f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Sep 2008 11:25:56 -0400 Subject: Don't use single code format characters anymore. Access to object details will now always be done with "%(identifier)". --- src/account.cc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/account.cc') 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': -- cgit v1.2.3