mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-23 14:11:55 +01:00
WorkerPool: Use variable
This commit is contained in:
parent
5284ca90ef
commit
3db6699018
@ -374,8 +374,9 @@ void WorkerPool<HandlerType>::ProcessReadyReadStandardOutput() {
|
||||
Q_ASSERT(QThread::currentThread() == thread());
|
||||
|
||||
QProcess *process = qobject_cast<QProcess*>(sender());
|
||||
QByteArray data = process->readAllStandardOutput();
|
||||
|
||||
fprintf(stdout, "%s", process->readAllStandardOutput().data());
|
||||
fprintf(stdout, "%s", data.data());
|
||||
fflush(stdout);
|
||||
|
||||
}
|
||||
@ -386,8 +387,9 @@ void WorkerPool<HandlerType>::ProcessReadyReadStandardError() {
|
||||
Q_ASSERT(QThread::currentThread() == thread());
|
||||
|
||||
QProcess *process = qobject_cast<QProcess*>(sender());
|
||||
QByteArray data = process->readAllStandardError();
|
||||
|
||||
fprintf(stderr, "%s", process->readAllStandardError().data());
|
||||
fprintf(stderr, "%s", data.data());
|
||||
fflush(stderr);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user