forked from qt-creator/qt-creator
Qnx: Avoid use of QtcProcess::ioDevice()
And drop the function from the QtcProcess interface, as this was the only user. Change-Id: I5a21cdaacb3f91f78058e80cbe1cb1572e9bf331 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -779,11 +779,6 @@ QString QtcProcess::exitMessage()
|
||||
return QString();
|
||||
}
|
||||
|
||||
QIODevice *QtcProcess::ioDevice()
|
||||
{
|
||||
return d->m_process;
|
||||
}
|
||||
|
||||
QByteArray QtcProcess::allRawOutput() const
|
||||
{
|
||||
if (!d->m_stdOut.rawData.isEmpty() && !d->m_stdErr.rawData.isEmpty()) {
|
||||
|
@@ -170,8 +170,6 @@ public:
|
||||
void closeWriteChannel();
|
||||
void close();
|
||||
|
||||
QIODevice *ioDevice(); // FIXME: Remove.
|
||||
|
||||
signals:
|
||||
void started();
|
||||
void finished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
@@ -127,10 +127,9 @@ EnvironmentItems QnxUtils::qnxEnvironmentFromEnvFile(const QString &fileName)
|
||||
return items;
|
||||
|
||||
// parsing process output
|
||||
QTextStream str(process.ioDevice());
|
||||
while (!str.atEnd()) {
|
||||
QString line = str.readLine();
|
||||
int equalIndex = line.indexOf(QLatin1Char('='));
|
||||
const QString output = process.stdOut();
|
||||
for (const QString &line : output.split('\n')) {
|
||||
int equalIndex = line.indexOf('=');
|
||||
if (equalIndex < 0)
|
||||
continue;
|
||||
QString var = line.left(equalIndex);
|
||||
|
Reference in New Issue
Block a user