Revert "[cl;ang-tidy] Don't initialize strings"

This reverts commit 426e067f43.
This commit is contained in:
Paul Beckingham
2020-12-05 16:18:15 -05:00
parent 3eb209f248
commit 9016c26828
4 changed files with 10 additions and 10 deletions

View File

@@ -65,9 +65,9 @@ extern Task& contextTask;
static const float epsilon = 0.000001;
#endif
std::string Task::defaultProject;
std::string Task::defaultDue;
std::string Task::defaultScheduled;
std::string Task::defaultProject = "";
std::string Task::defaultDue = "";
std::string Task::defaultScheduled = "";
bool Task::searchCaseSensitive = true;
bool Task::regex = false;
std::map <std::string, std::string> Task::attributes;
@@ -87,7 +87,7 @@ float Task::urgencyAgeMax = 0.0;
std::map <std::string, std::vector <std::string>> Task::customOrder;
static const std::string dummy;
static const std::string dummy ("");
////////////////////////////////////////////////////////////////////////////////
// The uuid and id attributes must be exempt from comparison.
@@ -2062,7 +2062,7 @@ void Task::modify (modType type, bool text_required /* = false */)
// Need this for later comparison.
auto originalStatus = getStatus ();
std::string text;
std::string text = "";
bool mods = false;
for (auto& a : Context::getContext ().cli2._args)
{