summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/amount.h b/src/amount.h
index c75370e3..a37efdb8 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -97,12 +97,8 @@ class amount_t
ordered_field_operators<amount_t, long> > > >
{
public:
- /** Indicates which commodity pool should be used. */
- static shared_ptr<commodity_pool_t> current_pool;
-
/** Ready the amount subsystem for use.
@note Normally called by session_t::initialize(). */
- static void initialize(shared_ptr<commodity_pool_t> pool);
static void initialize();
/** Shutdown the amount subsystem and free all resources.
@note Normally called by session_t::shutdown(). */
@@ -500,6 +496,9 @@ public:
long to_long() const;
bool fits_in_long() const;
+ operator string() const {
+ return to_string();
+ }
string to_string() const;
string to_fullstring() const;
string quantity_string() const;
@@ -577,7 +576,7 @@ public:
been stripped.
*/
void annotate(const annotation_t& details);
- bool is_annotated() const;
+ bool has_annotation() const;
annotation_t& annotation();
const annotation_t& annotation() const {