mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 03:56:26 -04:00
Fix wstring to string conversion warning in Logitech controllers
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <cstring>
|
||||
#include "LogitechX56Controller.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
LogitechX56Controller::LogitechX56Controller(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
@@ -43,10 +44,7 @@ std::string LogitechX56Controller::GetSerialString()
|
||||
return("");
|
||||
}
|
||||
|
||||
std::wstring return_wstring = serial_string;
|
||||
std::string return_string(return_wstring.begin(), return_wstring.end());
|
||||
|
||||
return(return_string);
|
||||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
void LogitechX56Controller::SetColor(RGBColor color, uint8_t brightness)
|
||||
|
||||
Reference in New Issue
Block a user