summaryrefslogtreecommitdiff
path: root/src/query.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 12:22:19 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 12:22:19 -0500
commit5ffa987daf4d97c52066e4c28733d826d3726297 (patch)
treeab058dec32702ccce9d1f7cacacb5b5c157d6798 /src/query.h
parent9e07e61fadf7f3c9d1fd32a3805f6e97163eba15 (diff)
parent3f638d355c977fd5513ab1db380c5813599f3664 (diff)
downloadfork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.gz
fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.bz2
fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.zip
Merge branch 'next'
Diffstat (limited to 'src/query.h')
-rw-r--r--src/query.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/query.h b/src/query.h
index e64588ad..e3545396 100644
--- a/src/query.h
+++ b/src/query.h
@@ -254,11 +254,19 @@ public:
: predicate_t(other) {
TRACE_CTOR(query_t, "copy");
}
-
- query_t(const value_t& args,
+ query_t(const string& arg,
const keep_details_t& _what_to_keep = keep_details_t())
: predicate_t(_what_to_keep) {
TRACE_CTOR(query_t, "string, keep_details_t");
+ if (! arg.empty()) {
+ value_t temp(string_value(arg));
+ parse_args(temp.to_sequence());
+ }
+ }
+ query_t(const value_t& args,
+ const keep_details_t& _what_to_keep = keep_details_t())
+ : predicate_t(_what_to_keep) {
+ TRACE_CTOR(query_t, "value_t, keep_details_t");
if (! args.empty())
parse_args(args);
}