diff --git a/src/Hooks.cpp b/src/Hooks.cpp index a703b2539..1d1e440a4 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -275,7 +275,7 @@ void Hooks::onAdd(Task& task) const { // - all emitted non-JSON lines are considered feedback or error messages // depending on the status code. // -void Hooks::onModify(const Task& before, Task& after) const { +void Hooks::onModify(Task& before, Task& after) const { if (!_enabled) return; Timer timer; diff --git a/src/Hooks.h b/src/Hooks.h index 6496674b7..448c59744 100644 --- a/src/Hooks.h +++ b/src/Hooks.h @@ -40,7 +40,7 @@ class Hooks { void onLaunch() const; void onExit() const; void onAdd(Task&) const; - void onModify(const Task&, Task&) const; + void onModify(Task&, Task&) const; std::vector list() const; private: diff --git a/src/Task.cpp b/src/Task.cpp index 4eded903a..6608db850 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -777,7 +777,7 @@ void Task::parseLegacy(const std::string& line) { } //////////////////////////////////////////////////////////////////////////////// -std::string Task::composeJSON(bool decorate /*= false*/) const { +std::string Task::composeJSON(bool decorate /*= false*/) { std::stringstream out; out << '{'; @@ -894,7 +894,7 @@ std::string Task::composeJSON(bool decorate /*= false*/) const { #ifdef PRODUCT_TASKWARRIOR // Include urgency. - if (decorate) out << ',' << "\"urgency\":" << urgency_c(); + if (decorate) out << ',' << "\"urgency\":" << urgency(); #endif out << '}'; diff --git a/src/Task.h b/src/Task.h index b430a2bc2..0b577baff 100644 --- a/src/Task.h +++ b/src/Task.h @@ -68,7 +68,7 @@ class Task { Task(rust::Box); void parse(const std::string&); - std::string composeJSON(bool decorate = false) const; + std::string composeJSON(bool decorate = false); // Status values. enum status { pending, completed, deleted, recurring, waiting };