mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-08 11:20:43 -04:00
Move wstring to string conversion to StringUtils.cpp and update most HID get serial number functions to use it
This commit is contained in:
1 parent
366fda30f5
commit
b4d15b9545
159 files changed
+623
-930
No files matched your search
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <cstring>
|
||||
#include "GigabyteAorusPCCaseController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
GigabyteAorusPCCaseController::GigabyteAorusPCCaseController(hid_device *dev_handle, const char *path)
|
||||
{
|
||||
@@ -38,10 +39,7 @@ std::string GigabyteAorusPCCaseController::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 GigabyteAorusPCCaseController::SendColor(uint8_t red, uint8_t green, uint8_t blue)
|
||||
|
||||
Reference in new issue
Block a user