From 0de5bf3509a5f03166d67c0c3b56e3249e145cb4 Mon Sep 17 00:00:00 2001 From: Jan Horacek Date: Mon, 10 May 2021 20:42:08 +0200 Subject: [PATCH] Fix windows build issue. --- src/main.cpp | 2 +- src/main.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 86de94f..328296b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -550,7 +550,7 @@ void DaemonCoreApplication::serverClientDisconnected(QTcpSocket* socket) { modules[i]->clientDisconnected(socket); } - this->clientResetOutputs(socket); + this->clientResetOutputs(socket, [](){}, [](){}); } void DaemonCoreApplication::clientResetOutputs( diff --git a/src/main.h b/src/main.h index 25cf36e..73e32ab 100644 --- a/src/main.h +++ b/src/main.h @@ -50,8 +50,8 @@ class DaemonCoreApplication : public QCoreApplication { void mtbUsbConnect(); void clientResetOutputs(QTcpSocket*, - std::function onOk = [](){}, - std::function onError = [](){}); + std::function onOk, + std::function onError); private slots: void mtbUsbOnLog(QString message, Mtb::LogLevel loglevel);