mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-25 09:59:15 -04:00
Fix wstring to string conversion warnings in SinowealthKeyboardController.cpp
This commit is contained in:
1 parent
fd0ad07a96
commit
61c3fc7975
1 file changed
+3
-5
@@ -8,8 +8,9 @@
|
||||
| Dmitri Kalinichenko (Dima-Kal) 23/06/2021 |
|
||||
\*-----------------------------------------=*/
|
||||
|
||||
#include "SinowealthKeyboardController.h"
|
||||
#include <cstring>
|
||||
#include "SinowealthKeyboardController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
static unsigned char send_per_key_part_of_command_packet[] = { 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00,
|
||||
@@ -114,10 +115,7 @@ std::string SinowealthKeyboardController::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 SinowealthKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
|
||||
|
||||
Reference in new issue
Block a user