summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-16 05:37:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:52 -0400
commit023f28630f7ed8f845eab00b137d58cc79b4445b (patch)
treee48c55fa1e87f5b34c00cbca7aac334c97c9e7f0 /src/option.cc
parent52822604713b73160ac497bc170eb45d9a594306 (diff)
downloadledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.gz
ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.bz2
ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.zip
Changed xpath to use the new copy-on-write value_t.
Diffstat (limited to 'src/option.cc')
-rw-r--r--src/option.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/option.cc b/src/option.cc
index d56eb0ff..607e22bd 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -85,11 +85,9 @@ namespace {
scoped_ptr<xml::xpath_t::scope_t> args;
if (arg) {
args.reset(new xml::xpath_t::scope_t(scope, xml::xpath_t::scope_t::ARGUMENT));
- args->args.set_string(arg);
+ args->args.push_back(value_t(arg, true));
}
-
- value_t temp;
- opt(temp, args.get());
+ opt(args.get());
#if 0
}
catch (error * err) {