mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Don't use string literals when character literals are needed
This commit is contained in:
parent
5403675100
commit
95f4989f77
58 changed files with 372 additions and 374 deletions
|
@ -67,7 +67,6 @@ void dependencyGetBlocking (const Task& task, std::vector <Task>& blocking)
|
|||
// Returns true if the supplied task adds a cycle to the dependency chain.
|
||||
bool dependencyIsCircular (const Task& task)
|
||||
{
|
||||
|
||||
// A new task has no UUID assigned yet, and therefore cannot be part of any
|
||||
// dependency chain.
|
||||
if (task.has ("uuid"))
|
||||
|
@ -163,7 +162,7 @@ void dependencyChainOnComplete (Task& task)
|
|||
<< "\n";
|
||||
|
||||
for (auto& b : blocking)
|
||||
std::cout << " " << b.id << " " << b.get ("description") << "\n";
|
||||
std::cout << " " << b.id << ' ' << b.get ("description") << "\n";
|
||||
}
|
||||
|
||||
// If there are both blocking and blocked tasks, the chain is broken.
|
||||
|
@ -175,7 +174,7 @@ void dependencyChainOnComplete (Task& task)
|
|||
<< "\n";
|
||||
|
||||
for (auto& b : blocked)
|
||||
std::cout << " " << b.id << " " << b.get ("description") << "\n";
|
||||
std::cout << " " << b.id << ' ' << b.get ("description") << "\n";
|
||||
}
|
||||
|
||||
if (!context.config.getBoolean ("dependency.confirmation") ||
|
||||
|
@ -218,7 +217,7 @@ void dependencyChainOnStart (Task& task)
|
|||
<< "\n";
|
||||
|
||||
for (auto& b : blocking)
|
||||
std::cout << " " << b.id << " " << b.get ("description") << "\n";
|
||||
std::cout << " " << b.id << ' ' << b.get ("description") << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue