diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-29 16:25:22 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-29 16:25:22 -0500 |
commit | 0f180b917ae00b7b247db367020fd29823000877 (patch) | |
tree | 632df80d2f2a1387dfd4f6b67eda1baf2c2e08d8 /src/commodity.h | |
parent | 7422fa5f3e2505dfa8f5494e4ce9e987440a57a1 (diff) | |
download | fork-ledger-0f180b917ae00b7b247db367020fd29823000877.tar.gz fork-ledger-0f180b917ae00b7b247db367020fd29823000877.tar.bz2 fork-ledger-0f180b917ae00b7b247db367020fd29823000877.zip |
Improved some error messages
Diffstat (limited to 'src/commodity.h')
-rw-r--r-- | src/commodity.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commodity.h b/src/commodity.h index ba47a572..d6885ee9 100644 --- a/src/commodity.h +++ b/src/commodity.h @@ -303,7 +303,8 @@ public: return temp; } - void print(std::ostream& out, bool elide_quotes = false) const; + virtual void print(std::ostream& out, bool elide_quotes = false, + bool print_annotations = false) const; bool valid() const; struct compare_by_commodity { @@ -338,7 +339,7 @@ private: }; inline std::ostream& operator<<(std::ostream& out, const commodity_t& comm) { - comm.print(out); + comm.print(out, false, true); return out; } |