From f783c59185c3274b47923b8efaf0ee0e863f0357 Mon Sep 17 00:00:00 2001 From: RickDB Date: Tue, 15 Mar 2016 12:06:24 +0100 Subject: [PATCH] Corrected indenting in LedDeviceFactory.cpp. Former-commit-id: 31713a4a0ce9bd25fd1e39969bbb481363a80167 --- libsrc/leddevice/LedDeviceFactory.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libsrc/leddevice/LedDeviceFactory.cpp b/libsrc/leddevice/LedDeviceFactory.cpp index 83625fab..8d39ea30 100755 --- a/libsrc/leddevice/LedDeviceFactory.cpp +++ b/libsrc/leddevice/LedDeviceFactory.cpp @@ -248,15 +248,15 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig) } else if (type == "atmoorb") { - const std::string output = deviceConfig["output"].asString(); - const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool(); - const int transitiontime = deviceConfig.get("transitiontime", 1).asInt(); - const int port = deviceConfig.get("port", 1).asInt(); - const int numLeds = deviceConfig.get("numLeds", 1).asInt(); + const std::string output = deviceConfig["output"].asString(); + const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool(); + const int transitiontime = deviceConfig.get("transitiontime", 1).asInt(); + const int port = deviceConfig.get("port", 1).asInt(); + const int numLeds = deviceConfig.get("numLeds", 1).asInt(); - std::vector orbIds; - for (Json::Value::ArrayIndex i = 0; i < deviceConfig["orbIds"].size(); i++) { - orbIds.push_back(deviceConfig["orbIds"][i].asInt()); + std::vector orbIds; + for (Json::Value::ArrayIndex i = 0; i < deviceConfig["orbIds"].size(); i++) { + orbIds.push_back(deviceConfig["orbIds"][i].asInt()); } device = new LedDeviceAtmoOrb(output, switchOffOnBlack, transitiontime, port, numLeds, orbIds);