summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-10 00:01:40 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:57 -0400
commit1c7669671c46e463251589fad07aa470b27f80e8 (patch)
tree0a76ad83f7bbf5b24b5d2c971a2dea37b58ffae4 /amount.h
parenta874bc851eec27da958b643e7c0eb4c62f2cd109 (diff)
downloadfork-ledger-1c7669671c46e463251589fad07aa470b27f80e8.tar.gz
fork-ledger-1c7669671c46e463251589fad07aa470b27f80e8.tar.bz2
fork-ledger-1c7669671c46e463251589fad07aa470b27f80e8.zip
Changes to support building with gcc 2.95.
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/amount.h b/amount.h
index 90447e09..d5d6ec11 100644
--- a/amount.h
+++ b/amount.h
@@ -380,16 +380,7 @@ class commodity_t
return this != &comm;
}
- void set_symbol(const std::string& sym) {
- *(const_cast<std::string *>(&symbol)) = sym;
- quote = false;
- for (const char * p = symbol.c_str(); *p; p++)
- if (std::isspace(*p) || std::isdigit(*p) || *p == '-' || *p == '.') {
- quote = true;
- return;
- }
-
- }
+ void set_symbol(const std::string& sym);
void add_price(const std::time_t date, const amount_t& price);
bool remove_price(const std::time_t date) {