diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-20 02:10:40 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-20 02:10:40 -0500 |
commit | 22505d9527edce59cd3cf90c5241e4bd809eb8a2 (patch) | |
tree | d943b2dba416a9fbe8619e02a293dfd854fd0869 /src/query.h | |
parent | df11ecbbd733068284a19369949bcaa20b0e6e76 (diff) | |
download | fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.gz fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.tar.bz2 fork-ledger-22505d9527edce59cd3cf90c5241e4bd809eb8a2.zip |
Always call TRACE_CTOR at the end of constructors
Diffstat (limited to 'src/query.h')
-rw-r--r-- | src/query.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/query.h b/src/query.h index c694d099..fe52eb35 100644 --- a/src/query.h +++ b/src/query.h @@ -204,10 +204,11 @@ public: consume_whitespace(false), consume_next_arg(false), multiple_args(_multiple_args) { - TRACE_CTOR(query_t::lexer_t, ""); assert(begin != end); arg_i = (*begin).as_string().begin(); arg_end = (*begin).as_string().end(); + + TRACE_CTOR(query_t::lexer_t, ""); } lexer_t(const lexer_t& lexer) : begin(lexer.begin), end(lexer.end), @@ -302,18 +303,19 @@ public: query_t(const string& arg, const keep_details_t& what_to_keep = keep_details_t(), bool multiple_args = true) { - TRACE_CTOR(query_t, "string, keep_details_t, bool"); if (! arg.empty()) { value_t temp(string_value(arg)); parse_args(temp.to_sequence(), what_to_keep, multiple_args); } + TRACE_CTOR(query_t, "string, keep_details_t, bool"); } query_t(const value_t& args, const keep_details_t& what_to_keep = keep_details_t(), bool multiple_args = true) { - TRACE_CTOR(query_t, "value_t, keep_details_t, bool"); if (! args.empty()) parse_args(args, what_to_keep, multiple_args); + + TRACE_CTOR(query_t, "value_t, keep_details_t, bool"); } virtual ~query_t() { TRACE_DTOR(query_t); |