summaryrefslogtreecommitdiff
path: root/src/quotes.cc
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/quotes.cc
parent994fb346993ddee2eaa4fb57eba2575636012b1a (diff)
downloadledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.gz
ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.bz2
ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.zip
*** no comment ***
Diffstat (limited to 'src/quotes.cc')
-rw-r--r--src/quotes.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quotes.cc b/src/quotes.cc
index d5dbd4fe..07417800 100644
--- a/src/quotes.cc
+++ b/src/quotes.cc
@@ -60,7 +60,7 @@ quotes_by_script::operator()(commodity_t& commodity,
(last && (now - *last) < pricing_leeway) ||
(moment && date && *moment > *date &&
(*moment - *date) <= pricing_leeway))
- return optional<amount_t>();
+ return none;
DEBUG_("downloading quote for symbol " << commodity.symbol());
@@ -111,7 +111,7 @@ quotes_by_script::operator()(commodity_t& commodity,
"Failed to download price for '" << commodity.symbol() <<
"' (command: \"getquote " << commodity.base_symbol() << "\")");
}
- return optional<amount_t>();
+ return none;
}
} // namespace ledger