summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-04 02:27:49 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-04-04 02:27:49 -0500
commit5a615ec680190222e25047366f166f9daf89c69f (patch)
tree133ec9582c4cf0740e33c75d1cc8d528829b6ef1 /src/item.h
parent807cce12ff7d1f3f950853694c0603f20021bff0 (diff)
downloadfork-ledger-5a615ec680190222e25047366f166f9daf89c69f.tar.gz
fork-ledger-5a615ec680190222e25047366f166f9daf89c69f.tar.bz2
fork-ledger-5a615ec680190222e25047366f166f9daf89c69f.zip
Make metadata tags case insensitive
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/item.h b/src/item.h
index 1e8db1e0..c56fba27 100644
--- a/src/item.h
+++ b/src/item.h
@@ -108,7 +108,8 @@ public:
enum state_t { UNCLEARED = 0, CLEARED, PENDING };
typedef std::pair<optional<value_t>, bool> tag_data_t;
- typedef std::map<string, tag_data_t> string_map;
+ typedef std::map<string, tag_data_t,
+ function<bool(string, string)> > string_map;
state_t _state;
optional<date_t> _date;