Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit f766365

Browse files
committed
Corrected type of json array value index
1 parent db3b067 commit f766365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsrc/leddevice/LedDeviceFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
197197
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
198198
const int transitiontime = deviceConfig.get("transitiontime", 1).asInt();
199199
std::vector<unsigned int> lightIds;
200-
for (size_t i = 0; i < deviceConfig["lightIds"].size(); i++) {
200+
for (Json::Value::ArrayIndex i = 0; i < deviceConfig["lightIds"].size(); i++) {
201201
lightIds.push_back(deviceConfig["lightIds"][i].asInt());
202202
}
203203
device = new LedDevicePhilipsHue(output, username, switchOffOnBlack, transitiontime, lightIds);

0 commit comments

Comments
 (0)