mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 12:06:37 -04:00
Fix wstring to string conversion warning in LogitechLightspeedController.cpp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user