mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-08 11:20:43 -04:00
Fix wstring to string conversion warnings in SinowealthKeyboard90Controller.cpp
This commit is contained in:
1 parent
67dadcbefb
commit
71b27d37a4
1 file changed
+4
-6
@@ -8,9 +8,10 @@
|
||||
| Jan Baier 30/06/2022 |
|
||||
\*-----------------------------------------=*/
|
||||
|
||||
#include "SinowealthKeyboard90Controller.h"
|
||||
#include "LogManager.h"
|
||||
#include <cstring>
|
||||
#include "LogManager.h"
|
||||
#include "SinowealthKeyboard90Controller.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
using namespace thor300;
|
||||
|
||||
@@ -41,10 +42,7 @@ std::string SinowealthKeyboard90Controller::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));
|
||||
}
|
||||
|
||||
unsigned short SinowealthKeyboard90Controller::GetUSBPID()
|
||||
|
||||
Reference in new issue
Block a user