forked from qt-creator/qt-creator
Fix warning: "Missing emit keyword on signal call"
[-Wclazy-incorrect-emit] Change-Id: I93bdc6e23cdaccf35c9899ae16870ccc65a54f80 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -264,7 +264,7 @@ void Parser::Private::parse(QIODevice *device)
|
||||
foreach (Function *func, pendingFunctions)
|
||||
func->finalize();
|
||||
|
||||
q->parserDataReady(); // emit
|
||||
emit q->parserDataReady();
|
||||
}
|
||||
|
||||
inline QString getValue(const QByteArray &line, const int prefixLength)
|
||||
|
||||
@@ -897,7 +897,7 @@ void CallgrindTool::slotRequestDump()
|
||||
{
|
||||
//setBusy(true);
|
||||
m_visualization->setText(tr("Populating..."));
|
||||
dumpRequested();
|
||||
emit dumpRequested();
|
||||
}
|
||||
|
||||
void CallgrindTool::loadExternalLogFile()
|
||||
|
||||
@@ -250,11 +250,11 @@ void Visualization::Private::handleMousePressEvent(QMouseEvent *event,
|
||||
const Function *func = q->functionForItem(itemAtPos);
|
||||
|
||||
if (doubleClicked) {
|
||||
q->functionActivated(func);
|
||||
emit q->functionActivated(func);
|
||||
} else {
|
||||
q->scene()->clearSelection();
|
||||
itemAtPos->setSelected(true);
|
||||
q->functionSelected(func);
|
||||
emit q->functionSelected(func);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -125,13 +125,13 @@ void ValgrindRunner::Private::run()
|
||||
void ValgrindRunner::Private::handleRemoteStderr(const QString &b)
|
||||
{
|
||||
if (!b.isEmpty())
|
||||
q->processOutputReceived(b, Utils::StdErrFormat);
|
||||
emit q->processOutputReceived(b, Utils::StdErrFormat);
|
||||
}
|
||||
|
||||
void ValgrindRunner::Private::handleRemoteStdout(const QString &b)
|
||||
{
|
||||
if (!b.isEmpty())
|
||||
q->processOutputReceived(b, Utils::StdOutFormat);
|
||||
emit q->processOutputReceived(b, Utils::StdOutFormat);
|
||||
}
|
||||
|
||||
void ValgrindRunner::Private::localProcessStarted()
|
||||
|
||||
Reference in New Issue
Block a user