summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:24:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:38 -0400
commit06e7c2820242ea5130a63305836f822ccb409a92 (patch)
treed59d4ad1e85c0319cebe203858bf1924ffa1d205 /src/commodity.h
parent7868a53b70bd08b79007386dbb5b1590bfb2e457 (diff)
downloadfork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.tar.gz
fork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.tar.bz2
fork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.zip
Rearranged many method names.
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 93c1f3be..fc1a23de 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -183,6 +183,9 @@ public:
void set_flags(flags_t arg) {
base->flags = arg;
}
+ bool has_flags(flags_t arg) {
+ return base->flags & arg;
+ }
void add_flags(flags_t arg) {
base->flags |= arg;
}