Replace AddCatalog() overload with defaulted argument

There is no need to have 2 overloads of this function when we could have just
a single one with a default parameter value.
This commit is contained in:
Vadim Zeitlin
2016-06-26 01:30:59 +02:00
parent 8d87ebfe47
commit 423ad59b00
3 changed files with 5 additions and 20 deletions

View File

@@ -141,8 +141,8 @@ public:
// add catalog with given domain name and language, looking it up via
// wxTranslationsLoader
bool AddCatalog(const wxString& domain);
bool AddCatalog(const wxString& domain, wxLanguage msgIdLanguage);
bool AddCatalog(const wxString& domain,
wxLanguage msgIdLanguage = wxLANGUAGE_ENGLISH_US);
#if !wxUSE_UNICODE
bool AddCatalog(const wxString& domain,
wxLanguage msgIdLanguage,