Fix wstring to string conversion warning in LogitechLightspeedController.cpp

This commit is contained in:
Adam Honse committed 2024-08-07 22:04:11 -05:00
1 parent e84a9b5327
commit c38e011924
1 file changed
+2 -2
@@ -11,6 +11,7 @@
#include <cstring>
#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);
}