Commit 18f486cc authored by Rafael Sadowski's avatar Rafael Sadowski Committed by Elvis Angelaccio

Fix compile with Clang 10.0.1

error: '__sF' declared as array of references of type 'QString (&)'
parent a5eed5d7
......@@ -74,7 +74,7 @@ void SvnCleanupDialog::on_buttonOk_clicked()
emit operationCompletedMessage(i18nc("@info:status", "SVN clean up completed successfully."));
} else {
emit errorMessage(i18nc("@info:status", "SVN clean up failed for %1", workDir));
qDebug() << result.stderr;
qDebug() << result.stdErr;
}
QDialog::accept();
......
......@@ -311,8 +311,8 @@ CommandResult SvnCommands::cleanup(const QString& dir, bool removeUnversioned, b
} else {
result.success = true;
}
result.stdout = process.readAllStandardOutput();
result.stderr = process.readAllStandardError();
result.stdOut = process.readAllStandardOutput();
result.stdErr = process.readAllStandardError();
return result;
}
......
......@@ -35,8 +35,8 @@ class QFileDevice;
*/
struct CommandResult {
bool success; ///< True if return code is '0' (normal execution).
QString stdout; ///< Process stdout.
QString stderr; ///< Process stderr.
QString stdOut; ///< Process stdout.
QString stdErr; ///< Process stderr.
};
/**
......
......@@ -115,7 +115,7 @@ void SvnProgressDialog::operationCompeleted()
const CommandResult result = SvnCommands::cleanup(m_workingDir);
if (!result.success) {
qWarning() << QString("'svn cleanup' failed for %1").arg(m_workingDir);
qWarning() << result.stderr;
qWarning() << result.stdErr;
}
m_svnTerminated = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment