From c38e011924f437f2b6de9f01a9d151ba3a24d7b6 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Wed, 7 Aug 2024 21:51:19 -0500 Subject: [PATCH] Fix wstring to string conversion warning in LogitechLightspeedController.cpp --- .../LogitechLightspeedController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/LogitechController/LogitechLightspeedController/LogitechLightspeedController.cpp b/Controllers/LogitechController/LogitechLightspeedController/LogitechLightspeedController.cpp index c790d3eb..3e04ad08 100644 --- a/Controllers/LogitechController/LogitechLightspeedController/LogitechLightspeedController.cpp +++ b/Controllers/LogitechController/LogitechLightspeedController/LogitechLightspeedController.cpp @@ -11,6 +11,7 @@ #include #include "LogitechLightspeedController.h" +#include "StringUtils.h" LogitechLightspeedController::LogitechLightspeedController(hid_device* dev_handle, const char* path) { @@ -46,8 +47,7 @@ std::string LogitechLightspeedController::GetSerialString() return(""); } - std::wstring return_wstring = serial_string; - std::string return_string(return_wstring.begin(), return_wstring.end()); + std::string return_string(StringUtils::wstring_to_string(serial_string)); return(return_string); }