From 71b27d37a48d075113ab86e100ff026b73b931e3 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 30 Jul 2024 00:17:16 -0500 Subject: [PATCH] Fix wstring to string conversion warnings in SinowealthKeyboard90Controller.cpp --- .../SinowealthKeyboard90Controller.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Controllers/SinowealthController/SinowealthKeyboard90Controller.cpp b/Controllers/SinowealthController/SinowealthKeyboard90Controller.cpp index 31bb6a92..9bacd38d 100644 --- a/Controllers/SinowealthController/SinowealthKeyboard90Controller.cpp +++ b/Controllers/SinowealthController/SinowealthKeyboard90Controller.cpp @@ -8,9 +8,10 @@ | Jan Baier 30/06/2022 | \*-----------------------------------------=*/ -#include "SinowealthKeyboard90Controller.h" -#include "LogManager.h" #include +#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()