mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-12 09:16:10 -04:00
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:
committed by
Ryan Foster
parent
dba426630a
commit
e38e9f8070
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user