Fix wstring to string conversion warning in LogitechLightspeedController.cpp

This commit is contained in:
Adam Honse 2024-08-07 21:51:19 -05:00
parent e84a9b5327
commit c38e011924

View file

@ -11,6 +11,7 @@
#include <cstring> #include <cstring>
#include "LogitechLightspeedController.h" #include "LogitechLightspeedController.h"
#include "StringUtils.h"
LogitechLightspeedController::LogitechLightspeedController(hid_device* dev_handle, const char* path) LogitechLightspeedController::LogitechLightspeedController(hid_device* dev_handle, const char* path)
{ {
@ -46,8 +47,7 @@ std::string LogitechLightspeedController::GetSerialString()
return(""); return("");
} }
std::wstring return_wstring = serial_string; std::string return_string(StringUtils::wstring_to_string(serial_string));
std::string return_string(return_wstring.begin(), return_wstring.end());
return(return_string); return(return_string);
} }