summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-30 00:38:29 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-30 00:51:05 -0500
commit8e8c2904f55eb9a43b3eb8057e9f11767a624dff (patch)
treebd7473e6ca867ab8a2fe10cc657484810e8daac7 /src/commodity.h
parent4b2b9dc009e5f44029cc23ea17e0a5c98266baff (diff)
downloadfork-ledger-8e8c2904f55eb9a43b3eb8057e9f11767a624dff.tar.gz
fork-ledger-8e8c2904f55eb9a43b3eb8057e9f11767a624dff.tar.bz2
fork-ledger-8e8c2904f55eb9a43b3eb8057e9f11767a624dff.zip
Never price commodities using annotated commodities
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commodity.h b/src/commodity.h
index d6885ee9..bfbabe6b 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -188,6 +188,9 @@ public:
return comm == *this;
return base.get() == comm.base.get();
}
+ bool operator==(const string& name) const {
+ return base_symbol() == name;
+ }
static bool symbol_needs_quotes(const string& symbol);