diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-16 10:46:05 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:53 -0400 |
commit | 2d8512af88eab26176089e53916f309f2d3b3be4 (patch) | |
tree | 5d0b6217a3367099d8a3fdb2866acc433c38e078 /src/value.h | |
parent | 1134fc7eff7094700abf16c2e532d7c3c40ae68d (diff) | |
download | fork-ledger-2d8512af88eab26176089e53916f309f2d3b3be4.tar.gz fork-ledger-2d8512af88eab26176089e53916f309f2d3b3be4.tar.bz2 fork-ledger-2d8512af88eab26176089e53916f309f2d3b3be4.zip |
Changed all uses of scope_t * to scope_t&
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 8 |
1 files changed, 4 insertions, 4 deletions
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&"); |