From 1d5faef123a18bddc5b4a420fb5710aa92d1e8e9 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 23 Aug 2022 04:05:30 +0000 Subject: [PATCH] Fix build with latest nlohmann json lib --- .../RGBController_GigabyteRGBFusion2USB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp b/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp index f1e846741..7fdd988a4 100644 --- a/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp +++ b/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp @@ -329,7 +329,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config() } else { - for(nlohmann::detail::iteration_proxy_value>& it : device_settings[SectionLayout].items()) + for(const nlohmann::detail::iteration_proxy_value>& it : device_settings[SectionLayout].items()) { MBName2Layout.insert( std::pair(it.key(), it.value() )); } @@ -380,7 +380,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config() json json_HCL = device_settings[SectionCustom]["Data"]; layout.clear(); - for(nlohmann::detail::iteration_proxy_value>& json_layout_it : json_HCL.items()) + for(const nlohmann::detail::iteration_proxy_value>& json_layout_it : json_HCL.items()) { json json_zl = json_layout_it.value(); std::vector v_lp;