Codechange: Use more std::string_view.

This commit is contained in:
frosch
2025-04-30 12:40:07 +02:00
committed by frosch
parent 9cf36dac39
commit 316279f4b4
6 changed files with 39 additions and 48 deletions
+2 -2
View File
@@ -23,7 +23,7 @@
StrgenState _strgen;
static bool _translated; ///< Whether the current language is not the master language
static const char *_cur_ident;
static std::string_view _cur_ident;
static ParsedCommandStruct _cur_pcs;
static size_t _cur_argidx;
@@ -759,7 +759,7 @@ void LanguageWriter::WriteLang(const StringData &data)
std::string output;
StringBuilder builder(output);
_cur_ident = ls->name.c_str();
_cur_ident = ls->name;
_strgen.cur_line = ls->line;
/* Produce a message if a string doesn't have a translation. */