Revert "[cl;ang-tidy] Don't initialize strings"
This reverts commit 426e067f43.
This commit is contained in:
10
src/Task.cpp
10
src/Task.cpp
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user