summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-13 09:27:26 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:49 -0400
commit9044bf168ab0d8d6df03034898b1e5a4cb1559e8 (patch)
treecc5233bf5394f72b1b2cb7aa866cd8b67ff9d346 /src/value.h
parent994fb346993ddee2eaa4fb57eba2575636012b1a (diff)
downloadfork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.gz
fork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.bz2
fork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.zip
*** no comment ***
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/value.h b/src/value.h
index 917f732f..f001a4aa 100644
--- a/src/value.h
+++ b/src/value.h
@@ -299,7 +299,7 @@ class value_t
bool operator<(const value_t& val) const;
//bool operator>(const value_t& val) const;
- string label(optional<type_t> the_type = optional<type_t>()) const {
+ string label(optional<type_t> the_type = none) const {
switch (the_type ? *the_type : type) {
case VOID:
return "an uninitialized value";
@@ -362,9 +362,8 @@ class value_t
const bool keep_tag = amount_t::keep_tag) const;
value_t& add(const amount_t& amount,
- const optional<amount_t>& cost = optional<amount_t>());
- value_t value(const optional<moment_t>& moment =
- optional<moment_t>()) const;
+ const optional<amount_t>& cost = none);
+ value_t value(const optional<moment_t>& moment = none) const;
void in_place_reduce();
value_t reduce() const {