summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-09 05:44:06 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-09 05:44:06 -0400
commit14476a63f4abbdce5311ace031b7345a34af060b (patch)
treec1900d4f2a95db2cdb4cf7404669fe668acedb4a /src/commodity.h
parente8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f (diff)
parent474d95adeb09b0c13f0e19b336b5b01ee69c6275 (diff)
downloadfork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.tar.gz
fork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.tar.bz2
fork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.zip
Merge branch 'next'
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commodity.h b/src/commodity.h
index d8aad10d..ae7d9d66 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -59,6 +59,10 @@ struct price_point_t
datetime_t when;
amount_t price;
+ price_point_t() {}
+ price_point_t(datetime_t _when, amount_t _price)
+ : when(_when), price(_price) {}
+
bool operator==(const price_point_t& other) const {
return when == other.when && price == other.price;
}
@@ -273,7 +277,7 @@ public:
virtual commodity_t& strip_annotations(const keep_details_t&) {
return *this;
}
- virtual void write_annotations(std::ostream&) const {}
+ virtual void write_annotations(std::ostream&, bool) const {}
commodity_pool_t& pool() const {
return *parent_;