summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
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) {