summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-10-07 01:51:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-10-07 01:51:38 -0400
commit5fd91d26ceeae3fa944410c00708ad8ec33a8381 (patch)
tree46cf7b23ea4abfe60164b32644c3fdc2fefe9a1c /src/op.h
parente2c31a6bc25e6a0c4f657f3c9cc18450f3e620ae (diff)
downloadfork-ledger-5fd91d26ceeae3fa944410c00708ad8ec33a8381.tar.gz
fork-ledger-5fd91d26ceeae3fa944410c00708ad8ec33a8381.tar.bz2
fork-ledger-5fd91d26ceeae3fa944410c00708ad8ec33a8381.zip
Corrected syntax errors found by Clang
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/op.h b/src/op.h
index 63d844bf..6f7d7904 100644
--- a/src/op.h
+++ b/src/op.h
@@ -267,8 +267,10 @@ public:
ostream_pos_type * end_pos;
bool relaxed;
- context_t(const ptr_op_t& _expr_op = NULL,
- const ptr_op_t& _op_to_find = NULL,
+ context_t() : start_pos(NULL), end_pos(NULL), relaxed(false) {}
+
+ context_t(const ptr_op_t& _expr_op,
+ const ptr_op_t& _op_to_find,
ostream_pos_type * const _start_pos = NULL,
ostream_pos_type * const _end_pos = NULL,
const bool _relaxed = true)
@@ -281,7 +283,7 @@ public:
void dump(std::ostream& out, const int depth = 0) const;
static ptr_op_t wrap_value(const value_t& val);
- static ptr_op_t wrap_functor(const expr_t::func_t& fobj);
+ static ptr_op_t wrap_functor(expr_t::func_t fobj);
#if defined(HAVE_BOOST_SERIALIZATION)
private:
@@ -327,7 +329,7 @@ inline expr_t::ptr_op_t expr_t::op_t::wrap_value(const value_t& val) {
}
inline expr_t::ptr_op_t
-expr_t::op_t::wrap_functor(const expr_t::func_t& fobj) {
+expr_t::op_t::wrap_functor(expr_t::func_t fobj) {
ptr_op_t temp(new op_t(op_t::FUNCTION));
temp->set_function(fobj);
return temp;