aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-12-12 11:34:17 +0100
committerhjk <hjk@qt.io>2023-12-12 10:55:32 +0000
commit016936a45032f2b443c336855c8ebe5b7e0d7e08 (patch)
treefeff371aa38eaf9fa01904b78a2021806c71a959 /src/plugins/perfprofiler
parent8d2cee31e4ecde69ae2577416d74cefdb891d8e8 (diff)
Clean up some lambdas
Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perfdatareader.cpp4
-rw-r--r--src/plugins/perfprofiler/perfprofilertool.cpp6
-rw-r--r--src/plugins/perfprofiler/perfprofilertracemanager.cpp2
-rw-r--r--src/plugins/perfprofiler/perfsettings.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/perfprofiler/perfdatareader.cpp b/src/plugins/perfprofiler/perfdatareader.cpp
index 8f4adf6f269..4ea37251acc 100644
--- a/src/plugins/perfprofiler/perfdatareader.cpp
+++ b/src/plugins/perfprofiler/perfdatareader.cpp
@@ -64,7 +64,7 @@ PerfDataReader::PerfDataReader(QObject *parent) :
});
connect(&m_input, &QIODevice::bytesWritten, this, &PerfDataReader::writeChunk);
- connect(&m_input, &QProcess::started, this, [this]() {
+ connect(&m_input, &QProcess::started, this, [this] {
emit processStarted();
if (m_input.isWritable()) {
writeChunk();
@@ -109,7 +109,7 @@ PerfDataReader::PerfDataReader(QObject *parent) :
});
connect(&m_input, &QProcess::readyReadStandardOutput, this, &PerfDataReader::readFromDevice);
- connect(&m_input, &QProcess::readyReadStandardError, this, [this]() {
+ connect(&m_input, &QProcess::readyReadStandardError, this, [this] {
Core::MessageManager::writeSilently(QString::fromLocal8Bit(m_input.readAllStandardError()));
});
diff --git a/src/plugins/perfprofiler/perfprofilertool.cpp b/src/plugins/perfprofiler/perfprofilertool.cpp
index 81a2e83c7a0..6c6bb508ddf 100644
--- a/src/plugins/perfprofiler/perfprofilertool.cpp
+++ b/src/plugins/perfprofiler/perfprofilertool.cpp
@@ -88,7 +88,7 @@ PerfProfilerTool::PerfProfilerTool()
m_limitToRange = new QAction(Tr::tr("Limit to Range Selected in Timeline"), options);
command = Core::ActionManager::registerAction(m_limitToRange, Constants::PerfProfilerTaskLimit,
globalContext);
- connect(m_limitToRange, &QAction::triggered, this, [this]() {
+ connect(m_limitToRange, &QAction::triggered, this, [this] {
traceManager().restrictByFilter(traceManager().rangeAndThreadFilter(
m_zoomControl->selectionStart(),
m_zoomControl->selectionEnd()));
@@ -271,12 +271,12 @@ void PerfProfilerTool::createViews()
errorDialog->show();
});
- connect(&traceManager(), &PerfProfilerTraceManager::loadFinished, this, [this]() {
+ connect(&traceManager(), &PerfProfilerTraceManager::loadFinished, this, [this] {
m_readerRunning = false;
updateRunActions();
});
- connect(&traceManager(), &PerfProfilerTraceManager::saveFinished, this, [this]() {
+ connect(&traceManager(), &PerfProfilerTraceManager::saveFinished, this, [this] {
setToolActionsEnabled(true);
});
diff --git a/src/plugins/perfprofiler/perfprofilertracemanager.cpp b/src/plugins/perfprofiler/perfprofilertracemanager.cpp
index ffe81dd2dcb..7a3643660c1 100644
--- a/src/plugins/perfprofiler/perfprofilertracemanager.cpp
+++ b/src/plugins/perfprofiler/perfprofilertracemanager.cpp
@@ -119,7 +119,7 @@ PerfProfilerTraceManager::PerfProfilerTraceManager()
&m_reparseTimer, QOverload<>::of(&QTimer::start));
connect(&m_reparseTimer, &QTimer::timeout,
- this, [this]() { restrictByFilter(rangeAndThreadFilter(traceStart(), traceEnd())); });
+ this, [this] { restrictByFilter(rangeAndThreadFilter(traceStart(), traceEnd())); });
resetAttributes();
}
diff --git a/src/plugins/perfprofiler/perfsettings.cpp b/src/plugins/perfprofiler/perfsettings.cpp
index 456f8909a99..3918e8969a7 100644
--- a/src/plugins/perfprofiler/perfsettings.cpp
+++ b/src/plugins/perfprofiler/perfsettings.cpp
@@ -93,7 +93,7 @@ PerfConfigWidget::PerfConfigWidget(PerfSettings *settings, Target *target)
this, &PerfConfigWidget::readTracePoints);
auto addEventButton = new QPushButton(Tr::tr("Add Event"), this);
- connect(addEventButton, &QPushButton::pressed, this, [this]() {
+ connect(addEventButton, &QPushButton::pressed, this, [this] {
auto model = eventsView->model();
model->insertRow(model->rowCount());
});