summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index df1731cd..54d4bfc2 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -33,6 +33,8 @@
#include "value.h"
#include "commodity.h"
+#include "annotate.h"
+#include "pool.h"
#include "unistring.h"
namespace ledger {
@@ -1240,7 +1242,7 @@ value_t value_t::exchange_commodities(const std::string& commodities,
p;
p = std::strtok(NULL, ",")) {
if (commodity_t * commodity =
- amount_t::current_pool->parse_commodity_prices(p, add_prices, moment)) {
+ amount_t::current_pool->parse_price_expression(p, add_prices, moment)) {
value_t result = value(false, moment, *commodity);
if (! result.is_null())
return result;