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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user