Remove null terminating chars from profile names before using them in ProfileManager

This commit is contained in:
morg 2023-12-06 10:33:57 +01:00
parent 6d562d8d37
commit 2eb43fa445
3 changed files with 21 additions and 1 deletions

View file

@ -1,10 +1,13 @@
#ifndef STRING_UTILS_H
#define STRING_UTILS_H
#include <string>
class StringUtils
{
public:
static const char* wchar_to_char(const wchar_t* pwchar);
static const std::string remove_null_terminating_chars(std::string input);
};
#endif // STRING_UTILS_H