Performance
- Removed "std::endl" in cases where the autoflush is only going to slow things down.
This commit is contained in:
@@ -645,13 +645,12 @@ std::string Config::checkForDeprecatedColor ()
|
||||
if (deprecated.size ())
|
||||
{
|
||||
out << "Your .taskrc file contains color settings that use deprecated "
|
||||
<< "underscores. Please check:"
|
||||
<< std::endl;
|
||||
<< "underscores. Please check:\n";
|
||||
|
||||
foreach (i, deprecated)
|
||||
out << " " << *i << "=" << get (*i) << std::endl;
|
||||
out << " " << *i << "=" << get (*i) << "\n";
|
||||
|
||||
out << std::endl;
|
||||
out << "\n";
|
||||
}
|
||||
|
||||
return out.str ();
|
||||
@@ -674,18 +673,17 @@ std::string Config::checkForDeprecatedColumns ()
|
||||
}
|
||||
|
||||
std::stringstream out;
|
||||
out << std::endl;
|
||||
out << "\n";
|
||||
|
||||
if (deprecated.size ())
|
||||
{
|
||||
out << "Your .taskrc file contains reports with deprecated columns. "
|
||||
<< "Please check for entry_time, start_time or end_time in:"
|
||||
<< std::endl;
|
||||
<< "Please check for entry_time, start_time or end_time in:\n";
|
||||
|
||||
foreach (i, deprecated)
|
||||
out << " " << *i << std::endl;
|
||||
out << " " << *i << "\n";
|
||||
|
||||
out << std::endl;
|
||||
out << "\n";
|
||||
}
|
||||
|
||||
return out.str ();
|
||||
|
||||
Reference in New Issue
Block a user