frontend: Pass std::string as result from RemoteTextThread

RemoteTextThread and WhatsNewInfoThread explicitly convert their results
into QString, but many consumers need std::string, converting them
back. Let's just use std::string directly and only convert to QString
where actually needed.
This commit is contained in:
Sebastian Beckmann
2025-09-17 19:28:30 +02:00
committed by Ryan Foster
parent dba426630a
commit e38e9f8070
10 changed files with 29 additions and 28 deletions

View File

@@ -89,9 +89,9 @@ void RemoteTextThread::run()
if (code != CURLE_OK) {
blog(LOG_WARNING, "RemoteTextThread: HTTP request failed. %s",
strlen(error) ? error : curl_easy_strerror(code));
emit Result(QString(), QT_UTF8(error));
emit Result(std::string{}, std::string{error});
} else {
emit Result(QT_UTF8(str.c_str()), QString());
emit Result(str, std::string{});
}
curl_slist_free_all(header);