Cleanup: Don't use string literals when character literals are needed

This commit is contained in:
Paul Beckingham 2016-10-14 22:27:34 -04:00
parent 5403675100
commit 95f4989f77
58 changed files with 372 additions and 374 deletions

View file

@ -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";
}
}
}