diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-17 16:10:48 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-17 16:10:48 -0400 |
commit | 019a42f199494c86b0aeea59caf9421d96a2c009 (patch) | |
tree | 33174f3a5d8cb742dd2e704aedb175fe94c60d82 /amount.cc | |
parent | 048d59afbccb859186112f2e6079d85b258d6e6b (diff) | |
download | fork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.tar.gz fork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.tar.bz2 fork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.zip |
fixes
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -572,16 +572,6 @@ amount_t::operator std::string() const return s.str(); } -static inline char peek_next_nonws(std::istream& in) -{ - char c = in.peek(); - while (! in.eof() && std::isspace(c)) { - in.get(c); - c = in.peek(); - } - return c; -} - void parse_quantity(std::istream& in, std::string& value) { static char buf[256]; @@ -605,7 +595,7 @@ void parse_commodity(std::istream& in, std::string& symbol) assert(0); } else { READ_INTO(in, buf, 256, c, ! std::isspace(c) && ! std::isdigit(c) && - c != '-' && c != '.'); + c != '-' && c != '.'); } symbol = buf; } |