diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:57:53 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:57:53 -0500 |
commit | 3f8c126c798d575d27d199ee3337499f338dc1ee (patch) | |
tree | b0c3f6500f142e4085f889ab498b2f7f65109c2b /src/annotate.h | |
parent | ede73e8889ce4c5b45ce837f312047b8d259fecf (diff) | |
download | fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.gz fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.bz2 fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.zip |
Use is_annotated() method rather than "annotated"
Diffstat (limited to 'src/annotate.h')
-rw-r--r-- | src/annotate.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/annotate.h b/src/annotate.h index 77dd9372..cb2a1161 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -185,9 +185,10 @@ class annotated_commodity_t equality_comparable2<annotated_commodity_t, commodity_t, noncopyable> > { -public: +protected: + friend class commodity_pool_t; + commodity_t * ptr; - annotation_t details; explicit annotated_commodity_t(commodity_t * _ptr, const annotation_t& _details) @@ -195,6 +196,10 @@ public: TRACE_CTOR(annotated_commodity_t, "commodity_t *, annotation_t"); annotated = true; } + +public: + annotation_t details; + virtual ~annotated_commodity_t() { TRACE_DTOR(annotated_commodity_t); } |