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

Found with readability-redundant-string-init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-09-27 20:25:10 -07:00
committed by Paul Beckingham
parent cc6826fc3a
commit 426e067f43
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)
{