Codechange: replace some more char*s with std::string_view

This commit is contained in:
Rubidium
2025-04-30 20:56:54 +02:00
committed by rubidium42
parent a80c11a6e8
commit 855377191e
5 changed files with 17 additions and 19 deletions

View File

@@ -160,8 +160,8 @@ static const CmdStruct _cmd_structs[] = {
/** Description of a plural form */
struct PluralForm {
size_t plural_count; ///< The number of plural forms
const char *description; ///< Human readable description of the form
const char *names; ///< Plural names
std::string_view description; ///< Human readable description of the form
std::string_view names; ///< Plural names
};
/** The maximum number of plurals. */
@@ -199,7 +199,7 @@ static const PluralForm _plural_forms[] = {
* a = array, i.e. list of strings
*/
/** All pragmas used */
static const char * const _pragmas[][4] = {
static const std::string_view _pragmas[][4] = {
/* name flags default description */
{ "name", "0", "", "English name for the language" },
{ "ownname", "t", "", "Localised name for the language" },