Skip to content

Commit b9a77b9

Browse files
committed
fix: build error on mac
1 parent e8daada commit b9a77b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

QuickDesk/src/manager/CloudDeviceManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void CloudDeviceManager::deviceLogin(const QString& deviceId)
139139
url, headers, QString(), kRequestTimeoutMs,
140140
[this, deviceId](int statusCode, const std::string& errorMsg, const std::string& data) {
141141
Q_UNUSED(data);
142-
QMetaObject::invokeMethod(this, [this, statusCode, errorMsg, deviceId]() {
142+
QMetaObject::invokeMethod(this, [statusCode, errorMsg, deviceId]() {
143143
if (statusCode != 200 || !errorMsg.empty()) {
144144
LOG_WARN("[CloudDeviceManager] deviceLogin failed: {}", errorMsg);
145145
return;
@@ -163,7 +163,7 @@ void CloudDeviceManager::deviceLogout(const QString& deviceId)
163163
url, headers, QString(), kRequestTimeoutMs,
164164
[this, deviceId](int statusCode, const std::string& errorMsg, const std::string& data) {
165165
Q_UNUSED(data);
166-
QMetaObject::invokeMethod(this, [this, statusCode, errorMsg, deviceId]() {
166+
QMetaObject::invokeMethod(this, [statusCode, errorMsg, deviceId]() {
167167
if (statusCode != 200 || !errorMsg.empty()) {
168168
LOG_WARN("[CloudDeviceManager] deviceLogout failed: {}", errorMsg);
169169
return;

0 commit comments

Comments
 (0)