mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-06-30 22:09:34 +02:00
Fix Qt 6 Clang build issues
This commit is contained in:
parent
22656bdeec
commit
e3924ea4da
@ -91,7 +91,6 @@ const quint8 modeBoost1 = 0x0C; // at the end it returns to automatic mode
|
||||
const quint8 modeBoost2 = 0x0D; // at the end it returns to manual mode
|
||||
const quint8 modeBoost3 = 0x0E; // at the end it returns to holiday mode
|
||||
|
||||
const quint8 lockOff = 0x00;
|
||||
const quint8 windowLockOn = 0x10;
|
||||
const quint8 keyLockOn = 0x20;
|
||||
const quint8 batteryCriticalOn = 0x80;
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
#include <QtDebug>
|
||||
#include <QThread>
|
||||
#include <QDebug>
|
||||
#include <QVariantMap>
|
||||
#include <QJsonDocument>
|
||||
|
||||
#include "extern-plugininfo.h"
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
#include "kecontact.h"
|
||||
#include "extern-plugininfo.h"
|
||||
|
||||
#include <QVariant>
|
||||
#include <QJsonDocument>
|
||||
|
||||
KeContact::KeContact(const QHostAddress &address, KeContactDataLayer *dataLayer, QObject *parent) :
|
||||
|
||||
@ -55,7 +55,7 @@ void IntegrationPluginOpenUv::discoverThings(ThingDiscoveryInfo *info)
|
||||
QNetworkRequest request(QUrl("http://ip-api.com/json"));
|
||||
QNetworkReply* reply = hardwareManager()->networkManager()->get(request);
|
||||
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
|
||||
connect(reply, &QNetworkReply::finished, info, [this, reply, info]() {
|
||||
connect(reply, &QNetworkReply::finished, info, [reply, info]() {
|
||||
if (reply->error() != QNetworkReply::NoError) {
|
||||
qCWarning(dcOpenUv()) << "Error fetching geolocation from ip-api:" << reply->error() << reply->errorString();
|
||||
info->finish(Thing::ThingErrorHardwareFailure, QT_TR_NOOP("Failed to fetch data from the internet."));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user