From ede52a96254c3819d3fd658e92bf82fa9febe178 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2007 02:59:12 +0000 Subject: Trying to get the new XPath code working. --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cc') 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); -- cgit v1.2.3