mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Performance
- Removed "std::endl" in cases where the autoflush is only going to slow things down.
This commit is contained in:
parent
1d3aa891d6
commit
eb2cb99532
11 changed files with 78 additions and 109 deletions
|
@ -56,8 +56,7 @@ bool Permission::confirmed (const Task& task, const std::string& question)
|
|||
if (allConfirmed)
|
||||
return true;
|
||||
|
||||
std::cout << std::endl
|
||||
<< "Task "
|
||||
std::cout << "\nTask "
|
||||
<< task.id
|
||||
<< " \""
|
||||
<< task.get ("description")
|
||||
|
@ -69,7 +68,7 @@ bool Permission::confirmed (const Task& task, const std::string& question)
|
|||
std::cout << " (Recurring)";
|
||||
}
|
||||
|
||||
std::cout << std::endl;
|
||||
std::cout << std::endl; // Flush.
|
||||
|
||||
int answer = confirm4 (question);
|
||||
if (answer == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue