diff options
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'; |