forked from qt-creator/qt-creator
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1258,8 +1258,8 @@ PerforceResponse PerforcePluginPrivate::synchronousProcess(const QString &workin
|
||||
if (flags & StdErrToWindow) {
|
||||
process.setStdErrBufferedSignalsEnabled(true);
|
||||
connect(&process, &SynchronousProcess::stdErrBuffered,
|
||||
outputWindow, [outputWindow](const QString &lines) {
|
||||
outputWindow->append(lines);
|
||||
outputWindow, [](const QString &lines) {
|
||||
VcsOutputWindow::append(lines);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1271,8 +1271,8 @@ PerforceResponse PerforcePluginPrivate::synchronousProcess(const QString &workin
|
||||
outputWindow, &VcsOutputWindow::appendSilently);
|
||||
} else {
|
||||
connect(&process, &SynchronousProcess::stdOutBuffered,
|
||||
outputWindow, [outputWindow](const QString &lines) {
|
||||
outputWindow->append(lines);
|
||||
outputWindow, [](const QString &lines) {
|
||||
VcsOutputWindow::append(lines);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user