Codechange: replace some more char*s with std::string_view
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user