diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:56:48 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:56:48 -0400 |
commit | 78e57ac4cfe60147051f0a04e82c19174a86f899 (patch) | |
tree | 804c42c86374dc4543872b9460886616498780dd /src/predicate.h | |
parent | 5d4ac679201fd45f7a780ca1b7920682db69d62e (diff) | |
download | fork-ledger-78e57ac4cfe60147051f0a04e82c19174a86f899.tar.gz fork-ledger-78e57ac4cfe60147051f0a04e82c19174a86f899.tar.bz2 fork-ledger-78e57ac4cfe60147051f0a04e82c19174a86f899.zip |
item_predicate now operates on scope_t
This means item_predicate is no longer a template.
Diffstat (limited to 'src/predicate.h')
-rw-r--r-- | src/predicate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/predicate.h b/src/predicate.h index dfdcd256..e4cc73a3 100644 --- a/src/predicate.h +++ b/src/predicate.h @@ -56,7 +56,6 @@ namespace ledger { * * Long. */ -template <typename T> class item_predicate { public: @@ -84,7 +83,7 @@ public: TRACE_DTOR(item_predicate); } - bool operator()(T& item) { + bool operator()(scope_t& item) { return ! predicate || predicate.calc(item).strip_annotations(what_to_keep); } }; |