mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Dependency: Don't use string literals when character literals are needed
This commit is contained in:
parent
096f12fd09
commit
40f35d6494
1 changed files with 6 additions and 6 deletions
|
@ -159,10 +159,10 @@ void dependencyChainOnComplete (Task& task)
|
||||||
if (context.config.getBoolean ("dependency.reminder"))
|
if (context.config.getBoolean ("dependency.reminder"))
|
||||||
{
|
{
|
||||||
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
||||||
<< "\n";
|
<< '\n';
|
||||||
|
|
||||||
for (auto& b : blocking)
|
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.
|
// If there are both blocking and blocked tasks, the chain is broken.
|
||||||
|
@ -171,10 +171,10 @@ void dependencyChainOnComplete (Task& task)
|
||||||
if (context.config.getBoolean ("dependency.reminder"))
|
if (context.config.getBoolean ("dependency.reminder"))
|
||||||
{
|
{
|
||||||
std::cout << STRING_DEPEND_BLOCKING
|
std::cout << STRING_DEPEND_BLOCKING
|
||||||
<< "\n";
|
<< '\n';
|
||||||
|
|
||||||
for (auto& b : blocked)
|
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") ||
|
if (!context.config.getBoolean ("dependency.confirmation") ||
|
||||||
|
@ -214,10 +214,10 @@ void dependencyChainOnStart (Task& task)
|
||||||
if (blocking.size ())
|
if (blocking.size ())
|
||||||
{
|
{
|
||||||
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
||||||
<< "\n";
|
<< '\n';
|
||||||
|
|
||||||
for (auto& b : blocking)
|
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