diff options
author | Andrew Potter <talisein@talinet.net> | 2009-05-26 17:23:34 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-05-26 22:47:07 -0500 |
commit | 684a9c6cbf8501b9fbc8d8fda2fcb29a508848d0 (patch) | |
tree | 2e4329896e678845ab4112d9a15dfa6f3894a483 /src/item.cc | |
parent | 98e6075af8ea709185edc862d1cc93c0a524a89c (diff) | |
download | fork-ledger-684a9c6cbf8501b9fbc8d8fda2fcb29a508848d0.tar.gz fork-ledger-684a9c6cbf8501b9fbc8d8fda2fcb29a508848d0.tar.bz2 fork-ledger-684a9c6cbf8501b9fbc8d8fda2fcb29a508848d0.zip |
Fix pointer const-ness in parse_tags()
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cc b/src/item.cc index 0f9b1dc8..758ce254 100644 --- a/src/item.cc +++ b/src/item.cc @@ -116,8 +116,8 @@ void item_t::set_tag(const string& tag, void item_t::parse_tags(const char * p, int current_year) { - if (char * b = std::strchr(p, '[')) { - if (char * e = std::strchr(p, ']')) { + if (const char * b = std::strchr(p, '[')) { + if (const char * e = std::strchr(p, ']')) { char buf[256]; std::strncpy(buf, b + 1, e - b - 1); buf[e - b - 1] = '\0'; |