summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-06 02:00:49 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-06 02:00:49 -0600
commit9509a7b8819c3ce1fd2680de65f9bd8098ac6961 (patch)
tree02d101854c267e935eda9e5205243527c5ba3b55 /src/commodity.h
parent02ffa7a515e4ebfb219af8dadf656f4ff806d6eb (diff)
downloadfork-ledger-9509a7b8819c3ce1fd2680de65f9bd8098ac6961.tar.gz
fork-ledger-9509a7b8819c3ce1fd2680de65f9bd8098ac6961.tar.bz2
fork-ledger-9509a7b8819c3ce1fd2680de65f9bd8098ac6961.zip
Made commodity_t::find_price a virtual function
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 7934f1ad..5cf9c53d 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -268,9 +268,9 @@ public:
const optional<datetime_t>& _oldest = none);
optional<price_point_t>
- find_price(const optional<commodity_t&>& commodity = none,
- const optional<datetime_t>& moment = none,
- const optional<datetime_t>& oldest = none) const;
+ virtual find_price(const optional<commodity_t&>& commodity = none,
+ const optional<datetime_t>& moment = none,
+ const optional<datetime_t>& oldest = none) const;
optional<price_point_t>
check_for_updated_price(const optional<price_point_t>& point,