mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user