Move wstring to string conversion to StringUtils.cpp and update most HID get serial number functions to use it

This commit is contained in:
Adam Honse 2024-07-28 03:50:29 -05:00
parent 366fda30f5
commit b4d15b9545
159 changed files with 623 additions and 930 deletions

View file

@ -7,8 +7,7 @@
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef STRING_UTILS_H
#define STRING_UTILS_H
#pragma once
#include <string>
@ -16,7 +15,6 @@ class StringUtils
{
public:
static const char* wchar_to_char(const wchar_t* pwchar);
static std::string wstring_to_string(const std::wstring wstring);
static const std::string remove_null_terminating_chars(std::string input);
};
#endif // STRING_UTILS_H