mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Revert "[clang-tidy] Add const references where useful"
This reverts commit 37b641259c
.
This commit is contained in:
parent
8cf4e3de08
commit
2652a9d3f1
2 changed files with 5 additions and 5 deletions
|
@ -200,7 +200,7 @@ bool Task::has (const std::string& name) const
|
||||||
std::vector <std::string> Task::all ()
|
std::vector <std::string> Task::all ()
|
||||||
{
|
{
|
||||||
std::vector <std::string> all;
|
std::vector <std::string> all;
|
||||||
for (const auto& i : data)
|
for (auto i : data)
|
||||||
all.push_back (i.first);
|
all.push_back (i.first);
|
||||||
|
|
||||||
return all;
|
return all;
|
||||||
|
@ -836,7 +836,7 @@ std::string Task::composeF4 () const
|
||||||
std::string ff4 = "[";
|
std::string ff4 = "[";
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
for (const auto& it : data)
|
for (auto it : data)
|
||||||
{
|
{
|
||||||
// Orphans have no type, treat as string.
|
// Orphans have no type, treat as string.
|
||||||
std::string type = Task::attributes[it.first];
|
std::string type = Task::attributes[it.first];
|
||||||
|
@ -931,7 +931,7 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
||||||
out << "\"tags\":[";
|
out << "\"tags\":[";
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (const auto& i : tags)
|
for (auto i : tags)
|
||||||
{
|
{
|
||||||
if (count++)
|
if (count++)
|
||||||
out << ',';
|
out << ',';
|
||||||
|
@ -970,7 +970,7 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
||||||
out << "\"depends\":[";
|
out << "\"depends\":[";
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (const auto& i : deps)
|
for (auto i : deps)
|
||||||
{
|
{
|
||||||
if (count++)
|
if (count++)
|
||||||
out << ',';
|
out << ',';
|
||||||
|
|
|
@ -47,7 +47,7 @@ static void countTasks (const std::vector <Task>&, const std::string&, int&, int
|
||||||
std::string taskIdentifiers (const std::vector <Task>& tasks)
|
std::string taskIdentifiers (const std::vector <Task>& tasks)
|
||||||
{
|
{
|
||||||
std::vector <std::string> identifiers;
|
std::vector <std::string> identifiers;
|
||||||
for (const auto& task: tasks)
|
for (auto task: tasks)
|
||||||
identifiers.push_back (task.identifier (true));
|
identifiers.push_back (task.identifier (true));
|
||||||
|
|
||||||
return join (", ", identifiers);
|
return join (", ", identifiers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue