Use lightweight printf instead of iostream

Using iostream usually adds a lot of other operators (<<, endl), whereas
*printf takes only 1 function call.

Also use qUtf8Printable whenever possible.
This commit is contained in:
Chocobo1 2018-03-15 00:13:47 +08:00
parent ccc91e2e52
commit 37ea01bd44
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
6 changed files with 29 additions and 26 deletions

View file

@ -2355,9 +2355,7 @@ void Session::saveResumeData()
std::vector<libt::alert *> alerts;
getPendingAlerts(alerts, 30 * 1000);
if (alerts.empty()) {
std::cerr << " aborting with " << m_numResumeData
<< " outstanding torrents to save resume data for"
<< std::endl;
fprintf(stderr, " aborting with %d outstanding torrents to save resume data for\n", m_numResumeData);
break;
}