summaryrefslogtreecommitdiff
path: root/src/pool.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 08:34:15 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 08:34:15 -0600
commit7bb83173dae617b8e754fff8e52390ff9664873b (patch)
tree53fb7d1b4d81299f3095006730984d7ad0143403 /src/pool.cc
parent04f884b14fd7cc396c9d442685df8489ae7e8a15 (diff)
downloadfork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.tar.gz
fork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.tar.bz2
fork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.zip
Added some missing DEBUG #if's
Diffstat (limited to 'src/pool.cc')
-rw-r--r--src/pool.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pool.cc b/src/pool.cc
index a6ae0919..fd661fe1 100644
--- a/src/pool.cc
+++ b/src/pool.cc
@@ -75,7 +75,9 @@ commodity_t * commodity_pool_t::create(const string& symbol)
#endif
commodities.insert(commodities_map::value_type
(commodity->base_symbol(), commodity));
+#if defined(DEBUG_ON)
assert(result.second);
+#endif
commodity_price_history.add_commodity(*commodity.get());
@@ -219,7 +221,9 @@ commodity_pool_t::create(commodity_t& comm,
annotated_commodities.insert(annotated_commodities_map::value_type
(annotated_commodities_map::key_type
(comm.symbol(), details), commodity));
+#if defined(DEBUG_ON)
assert(result.second);
+#endif
return commodity.get();
}