From dfe099fe9bd180775ed47e63fad3ca38ad42626c Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 4 Jul 2026 15:10:48 -0500 Subject: [PATCH] Fix warning in LogitechControllerDetect.cpp --- Controllers/LogitechController/LogitechControllerDetect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/LogitechController/LogitechControllerDetect.cpp b/Controllers/LogitechController/LogitechControllerDetect.cpp index ee9e1c0b8..1ce342e25 100644 --- a/Controllers/LogitechController/LogitechControllerDetect.cpp +++ b/Controllers/LogitechController/LogitechControllerDetect.cpp @@ -43,6 +43,7 @@ #include "RGBController_LogitechX56.h" #include "LogitechHIDPP20Controller.h" #include "RGBController_LogitechHIDPP20.h" +#include "StringUtils.h" using namespace std::chrono_literals; @@ -851,8 +852,7 @@ void DetectLogitechHIDPP20(hid_device_info* info, const std::string& /*name*/) if(info->product_string) { - std::wstring ws(info->product_string); - hid_name = std::string(ws.begin(), ws.end()); + hid_name = StringUtils::wstring_to_string(info->product_string); } if(hid_name.find("Receiver") != std::string::npos ||