From f83802f2b181307574b1a00e439e1505d155f711 Mon Sep 17 00:00:00 2001 From: ntim Date: Sat, 7 Mar 2015 09:58:48 +0100 Subject: [PATCH] Corrected type of json array value index Former-commit-id: f766365fc3be4d1b62c36ce05e8a6d818f73dede --- libsrc/leddevice/LedDeviceFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/leddevice/LedDeviceFactory.cpp b/libsrc/leddevice/LedDeviceFactory.cpp index fca6bc5e..55028fde 100755 --- a/libsrc/leddevice/LedDeviceFactory.cpp +++ b/libsrc/leddevice/LedDeviceFactory.cpp @@ -197,7 +197,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig) const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool(); const int transitiontime = deviceConfig.get("transitiontime", 1).asInt(); std::vector lightIds; - for (size_t i = 0; i < deviceConfig["lightIds"].size(); i++) { + for (Json::Value::ArrayIndex i = 0; i < deviceConfig["lightIds"].size(); i++) { lightIds.push_back(deviceConfig["lightIds"][i].asInt()); } device = new LedDevicePhilipsHue(output, username, switchOffOnBlack, transitiontime, lightIds);