Performance

- Removed "std::endl" in cases where the autoflush is only going to
  slow things down.
This commit is contained in:
Paul Beckingham 2010-10-02 12:02:06 -04:00
parent 1d3aa891d6
commit eb2cb99532
11 changed files with 78 additions and 109 deletions

View file

@ -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)