summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-19 02:58:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:53 -0400
commitb6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c (patch)
tree6cfe58ee8e093d310aa7ea84de87db3190c576bf /src/commodity.cc
parent2d8512af88eab26176089e53916f309f2d3b3be4 (diff)
downloadledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.tar.gz
ledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.tar.bz2
ledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.zip
Completely revised the way XPath expressions are calculated.
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 48609577..8ab518ee 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -126,13 +126,13 @@ commodity_t::operator bool() const
annotated_commodity_t& commodity_t::as_annotated()
{
assert(annotated);
- return *polymorphic_downcast<annotated_commodity_t *>(this);
+ return downcast<annotated_commodity_t>(*this);
}
const annotated_commodity_t& commodity_t::as_annotated() const
{
assert(annotated);
- return *polymorphic_downcast<const annotated_commodity_t *>(this);
+ return downcast<const annotated_commodity_t>(*this);
}
bool commodity_t::symbol_needs_quotes(const string& symbol)