mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-09 00:08:43 +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());
|
Q_ASSERT(QThread::currentThread() == thread());
|
||||||
|
|
||||||
QProcess *process = qobject_cast<QProcess*>(sender());
|
QProcess *process = qobject_cast<QProcess*>(sender());
|
||||||
|
QByteArray data = process->readAllStandardOutput();
|
||||||
|
|
||||||
fprintf(stdout, "%s", process->readAllStandardOutput().data());
|
fprintf(stdout, "%s", data.data());
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -386,8 +387,9 @@ void WorkerPool<HandlerType>::ProcessReadyReadStandardError() {
|
|||||||
Q_ASSERT(QThread::currentThread() == thread());
|
Q_ASSERT(QThread::currentThread() == thread());
|
||||||
|
|
||||||
QProcess *process = qobject_cast<QProcess*>(sender());
|
QProcess *process = qobject_cast<QProcess*>(sender());
|
||||||
|
QByteArray data = process->readAllStandardError();
|
||||||
|
|
||||||
fprintf(stderr, "%s", process->readAllStandardError().data());
|
fprintf(stderr, "%s", data.data());
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user