diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-10 00:01:40 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:57 -0400 |
commit | 1c7669671c46e463251589fad07aa470b27f80e8 (patch) | |
tree | 0a76ad83f7bbf5b24b5d2c971a2dea37b58ffae4 /amount.h | |
parent | a874bc851eec27da958b643e7c0eb4c62f2cd109 (diff) | |
download | fork-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.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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) { |