From 29f44b8725549b3b8296a53a72a04a8c76785035 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Thu, 19 Oct 2017 21:34:26 +0300 Subject: modbus: Remove unused 'this' lambda capture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes following clang warning: warning: lambda capture 'this' is not used [-Wunused-lambda-capture] connect(m_device, &QModbusDevice::stateChanged, [this] (QModbusDevice::State state) { ^ Change-Id: I487b8f024bdf8e0c18acb10dad370a230c796d92 Reviewed-by: André Hartmann Reviewed-by: Karsten Heimrich --- examples/serialbus/modbus/adueditor/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/serialbus/modbus/adueditor/mainwindow.cpp b/examples/serialbus/modbus/adueditor/mainwindow.cpp index 60a5448..721c38e 100644 --- a/examples/serialbus/modbus/adueditor/mainwindow.cpp +++ b/examples/serialbus/modbus/adueditor/mainwindow.cpp @@ -188,7 +188,7 @@ void MainWindow::on_connectButton_clicked() emit disconnectButton->clicked(); }, Qt::QueuedConnection); - connect(m_device, &QModbusDevice::stateChanged, [this](QModbusDevice::State state) { + connect(m_device, &QModbusDevice::stateChanged, [](QModbusDevice::State state) { switch (state) { case QModbusDevice::UnconnectedState: qDebug().noquote() << QStringLiteral("State: Entered unconnected state."); -- cgit v1.2.3