Fix warnings in ClevoKeyboardController.cpp

master
Adam Honse 2 months ago
parent 9ec15673d1
commit 13d3e09f1a

@ -10,8 +10,9 @@
| SPDX-License-Identifier: GPL-2.0-or-later | | SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#include "ClevoKeyboardController.h"
#include <cstring> #include <cstring>
#include "ClevoKeyboardController.h"
#include "StringUtils.h"
ClevoKeyboardController::ClevoKeyboardController(hid_device* dev_handle, const hid_device_info& info) ClevoKeyboardController::ClevoKeyboardController(hid_device* dev_handle, const hid_device_info& info)
{ {
@ -40,10 +41,7 @@ std::string ClevoKeyboardController::GetSerialString()
return(""); return("");
} }
std::wstring return_wstring = serial_string; return(StringUtils::wstring_to_string(serial_string));
std::string return_string(return_wstring.begin(), return_wstring.end());
return(return_string);
} }
std::string ClevoKeyboardController::GetFirmwareVersion() std::string ClevoKeyboardController::GetFirmwareVersion()

Loading…
Cancel
Save