Fix wstring to string conversion warning in LogitechLightspeedController.cpp
This commit is contained in:
parent
e84a9b5327
commit
c38e011924
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue