Codechange: Use std::string and std::string_view instead of C strings.

This commit is contained in:
frosch
2025-03-24 19:30:00 +01:00
committed by frosch
parent d7768f5f51
commit 488cda728d
9 changed files with 95 additions and 107 deletions

View File

@@ -137,11 +137,11 @@ private:
int idx;
Param *param;
bool used = false;
const char *cmd = nullptr;
std::string_view cmd;
ParamCheck(StringIndexInTab owner, int idx, Param *param) : owner(owner), idx(idx), param(param) {}
void Encode(std::back_insert_iterator<std::string> &output, const char *cmd);
void Encode(std::back_insert_iterator<std::string> &output, std::string_view cmd);
};
using ParamList = std::vector<ParamCheck>;