Change wxLocaleIdent ctor to take char* rather than wxString

This is convenient, as it allows using a simple string such as "en" as
an argument to the functions taking wxLocaleIdent and rely on implicit
conversion, whereas previously explicitly writing either wxString("en")
or wxLocaleIdent("en") would be necessary.
This commit is contained in:
Vadim Zeitlin
2021-08-29 18:53:29 +02:00
parent ddd60d5a39
commit 20e3697f00
2 changed files with 11 additions and 3 deletions

View File

@@ -184,11 +184,14 @@ public:
/**
Constructor with language.
Note that this constructor is non-explicit, allowing to pass just a
simple string, such as "en", to functions taking wxLocaleIdent.
@param language
ISO 639 language code.
See Language() for more detailed info.
*/
wxLocaleIdent(const wxString& language);
wxLocaleIdent(const char* language);
/**
Set language.