summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-19 02:59:12 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:54 -0400
commitede52a96254c3819d3fd658e92bf82fa9febe178 (patch)
treef5beffe106985b12eb759522d47c26481473479f /src/main.cc
parent565d8eeb876e69a38076033cdd09c89e8f10940b (diff)
downloadfork-ledger-ede52a96254c3819d3fd658e92bf82fa9febe178.tar.gz
fork-ledger-ede52a96254c3819d3fd658e92bf82fa9febe178.tar.bz2
fork-ledger-ede52a96254c3819d3fd658e92bf82fa9febe178.zip
Trying to get the new XPath code working.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 0b29e253..d01ebd50 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -145,7 +145,7 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[],
xml::xpath_t expr(*arg);
xml::document_t temp(xml::LEDGER_NODE);
- xml::xpath_t::context_scope_t doc_scope(report, temp);
+ xml::xpath_t::context_scope_t doc_scope(report, &temp);
IF_INFO() {
std::cout << "Value expression tree:" << std::endl;
@@ -260,7 +260,7 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[],
// Are we handling the expr commands? Do so now.
- xml::xpath_t::context_scope_t doc_scope(report, xml_document);
+ xml::xpath_t::context_scope_t doc_scope(report, &xml_document);
if (verb == "expr") {
xml::xpath_t expr(*arg);