From 09e2cb46d666443430b9654cccd77d8408b9dd2e Mon Sep 17 00:00:00 2001 From: Max Rossmannek Date: Sat, 21 Nov 2020 18:31:44 +0100 Subject: [PATCH] Simplify task construction --- src/TDB2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 353f3ac4b..daeb56688 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -839,7 +839,7 @@ void TDB2::revert () // - erase from completed // - if in backlog, erase, else cannot undo - Task old = Task (); + Task old; if (prior != "") old = Task (prior); Context::getContext ().hooks.onModify (Task (current), old);