File tree Expand file tree Collapse file tree
Controllers/ClevoLightbarController Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010| SPDX-License-Identifier: GPL-2.0-or-later |
1111\*---------------------------------------------------------*/
1212
13- #include " ClevoLightbarController.h"
1413#include < cstring>
14+ #include " ClevoLightbarController.h"
15+ #include " StringUtils.h"
1516
1617ClevoLightbarController::ClevoLightbarController (hid_device* dev_handle, const hid_device_info& info)
1718{
@@ -40,10 +41,7 @@ std::string ClevoLightbarController::GetSerialString()
4041 return (" " );
4142 }
4243
43- std::wstring return_wstring = serial_string;
44- std::string return_string (return_wstring.begin (), return_wstring.end ());
45-
46- return (return_string);
44+ return (StringUtils::wstring_to_string (serial_string));
4745}
4846
4947std::string ClevoLightbarController::GetFirmwareVersion ()
You can’t perform that action at this time.
0 commit comments