Some optimizations on empty wxString comparison and on Search (Database)
This commit is contained in:
@@ -110,7 +110,7 @@ wxLanguage User::GetLanguage()
|
||||
wxString res = _preferences[wxT("language")];
|
||||
long val;
|
||||
|
||||
if (res == wxT(""))
|
||||
if (!res.Length())
|
||||
return wxLANGUAGE_ENGLISH ;
|
||||
|
||||
res.ToLong(&val);
|
||||
|
||||
Reference in New Issue
Block a user