From 2d8512af88eab26176089e53916f309f2d3b3be4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 16 May 2007 10:46:05 +0000 Subject: Changed all uses of scope_t * to scope_t& --- src/value.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 148d5bd6..2371b74e 100644 --- a/src/value.h +++ b/src/value.h @@ -183,19 +183,19 @@ public: TRACE_CTOR(value_t, "const unsigned long"); set_amount(val); } - value_t(const string& val, bool literal = false) { + explicit value_t(const string& val, bool literal = false) { TRACE_CTOR(value_t, "const string&, bool"); if (literal) set_string(val); else - set_amount(val); + set_amount(amount_t(val)); } - value_t(const char * val, bool literal = false) { + explicit value_t(const char * val, bool literal = false) { TRACE_CTOR(value_t, "const char *"); if (literal) set_string(val); else - set_amount(val); + set_amount(amount_t(val)); } value_t(const amount_t& val) { TRACE_CTOR(value_t, "const amount_t&"); -- cgit v1.2.3