Skip to content

Commit 1d5faef

Browse files
DarthGandalfCalcProgrammer1
authored andcommitted
Fix build with latest nlohmann json lib
1 parent 044917e commit 1d5faef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config()
329329
}
330330
else
331331
{
332-
for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items())
332+
for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items())
333333
{
334334
MBName2Layout.insert( std::pair<std::string, std::string>(it.key(), it.value() ));
335335
}
@@ -380,7 +380,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config()
380380
json json_HCL = device_settings[SectionCustom]["Data"];
381381
layout.clear();
382382

383-
for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items())
383+
for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items())
384384
{
385385
json json_zl = json_layout_it.value();
386386
std::vector<LedPort> v_lp;

0 commit comments

Comments
 (0)