Rename wxLocaleIdent::IsDefault() to IsEmpty()

We don't use empty wxLocaleIdent as default user locale and it doesn't
make much sense to do it, as the default locale is already accessible
via wxUILocale::GetDefault().
This commit is contained in:
Vadim Zeitlin
2021-09-04 20:26:09 +02:00
parent 4d32fd481c
commit be01b0c36a
3 changed files with 10 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ enum
class WXDLLIMPEXP_BASE wxLocaleIdent
{
public:
// Leave language empty
// Default ctor creates an empty, invalid identifier.
wxLocaleIdent() { }
// Construct from language, i.e. a two-letter ISO 639-1 code (or a
@@ -69,8 +69,8 @@ public:
// Construct platform dependent name
wxString GetName() const;
// Empty language represents user's default language
bool IsDefault() const
// Empty locale identifier is invalid. at least Language() must be called.
bool IsEmpty() const
{
return m_language.empty();
}