fixed build error uninitialized lifxCloud

master
bernhard.trinnes 2020-08-11 10:13:53 +02:00
parent bb692b90fe
commit ea8f37ef83
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ void IntegrationPluginLifx::startPairing(ThingPairingInfo *info)
QUrl url("https://api.lifx.com/v1");
QNetworkReply *reply = m_networkManager->get(QNetworkRequest(url));
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::NetworkError::HostNotFoundError) {
info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("LIFX server is not reachable."));
@ -271,8 +271,8 @@ void IntegrationPluginLifx::executeAction(ThingActionInfo *info)
Thing *thing = info->thing();
Action action = info->action();
bool cloudDevice = false;
LifxLan *lifx;
LifxCloud *lifxCloud;
LifxLan *lifx = nullptr;
LifxCloud *lifxCloud = nullptr;
if (m_lifxLanConnections.contains(thing)) {
// Local connection first