From 3f8c126c798d575d27d199ee3337499f338dc1ee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Nov 2009 16:57:53 -0500 Subject: Use is_annotated() method rather than "annotated" --- src/commodity.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commodity.cc') diff --git a/src/commodity.cc b/src/commodity.cc index 689cf466..26038a0b 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -604,11 +604,11 @@ bool compare_amount_commodities::operator()(const amount_t * left, if (cmp != 0) return cmp < 0; - if (! leftcomm.annotated) { - return rightcomm.annotated; + if (! leftcomm.is_annotated()) { + return rightcomm.is_annotated(); } - else if (! rightcomm.annotated) { - return ! leftcomm.annotated; + else if (! rightcomm.is_annotated()) { + return ! leftcomm.is_annotated(); } else { annotated_commodity_t& aleftcomm(static_cast(leftcomm)); -- cgit v1.2.3