summaryrefslogtreecommitdiff
path: root/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'item.h')
-rw-r--r--item.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/item.h b/item.h
index f1b9b2f0..b0fd6a36 100644
--- a/item.h
+++ b/item.h
@@ -15,6 +15,8 @@ typedef std::deque<item_t *> items_deque;
struct item_t
{
struct item_t * parent;
+ items_deque subitems;
+
unsigned int index;
std::time_t date;
std::string payee;
@@ -22,8 +24,6 @@ struct item_t
balance_pair_t value;
balance_pair_t total;
- items_deque subitems;
-
item_t() : parent(NULL), index(0), date(-1), account(NULL) {}
~item_t() {
@@ -38,14 +38,11 @@ struct item_t
class constraints_t;
-item_t * walk_accounts(const account_t * account,
- const constraints_t& constraints,
- const bool compute_subtotals);
+item_t * walk_accounts(const account_t * account,
+ const constraints_t& constraints);
-item_t * walk_items(const item_t * top,
- const account_t * account,
- const constraints_t& constraints,
- const bool compute_subtotals);
+item_t * walk_items(const item_t * top, const account_t * account,
+ const constraints_t& constraints);
item_t * walk_entries(entries_list::const_iterator begin,
entries_list::const_iterator end,