UI: Fix Coverity warnings

This commit is contained in:
Nodir Temirkhodjaev 2024-03-29 16:29:33 +03:00
parent 6201f65d02
commit 19f86b53e0
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,7 @@ bool buildArgsData(QByteArray &buffer, const QVariantList &args, bool &compresse
}
compressed = (data.size() > 128);
buffer = compressed ? qCompress(std::move(data)) : data;
buffer = compressed ? qCompress(data) : std::move(data);
return true;
}

View File

@ -54,8 +54,7 @@ void CALLBACK managerNotifyCallback(PVOID param)
}
QMetaObject::invokeMethod(
monitor, [=] { monitor->onManagerNotify(std::move(createdServiceNames)); },
Qt::QueuedConnection);
monitor, [=] { monitor->onManagerNotify(createdServiceNames); }, Qt::QueuedConnection);
}
}