summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-23 20:06:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-23 20:06:00 -0400
commitd0ba09f1e0f26fd3f449ca639abb71083ead9243 (patch)
tree858c9d8296a0183700c84e8324bd96deb4481c26 /ledger.h
parent8a7cee24c8b130b7d79b41b55b559bb6864d6fc6 (diff)
downloadfork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.tar.gz
fork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.tar.bz2
fork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.zip
greatly improved the flexibility of the "entry" command; no more bogus 1-liners
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/ledger.h b/ledger.h
index 1aef2e3a..7be88463 100644
--- a/ledger.h
+++ b/ledger.h
@@ -224,17 +224,13 @@ class journal_t
accounts_cache.insert(accounts_pair(name, account));
return account;
}
- account_t * find_account(const std::string& name) const {
- // With auto_create false, the other `find_account' will not
- // change the object.
- return const_cast<journal_t *>(this)->find_account(name, false);
- }
+ account_t * find_account_re(const std::string& regexp);
bool add_entry(entry_t * entry);
bool remove_entry(entry_t * entry);
entry_t * derive_entry(strings_list::iterator begin,
- strings_list::iterator end) const;
+ strings_list::iterator end);
bool valid() const;
};