mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
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:
parent
ccc91e2e52
commit
37ea01bd44
6 changed files with 29 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue