summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cc b/src/item.cc
index 9e297052..54f36e11 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -114,7 +114,7 @@ void item_t::set_tag(const string& tag,
assert(result.second);
}
-void item_t::parse_tags(const char * p, int current_year)
+void item_t::parse_tags(const char * p, optional<date_t::year_type> current_year)
{
if (const char * b = std::strchr(p, '[')) {
if (const char * e = std::strchr(p, ']')) {
@@ -160,7 +160,7 @@ void item_t::parse_tags(const char * p, int current_year)
}
}
-void item_t::append_note(const char * p, int current_year)
+void item_t::append_note(const char * p, optional<date_t::year_type> current_year)
{
if (note) {
*note += '\n';