Some optimizations on empty wxString comparison and on Search (Database)

This commit is contained in:
2010-08-21 09:54:04 +02:00
parent 3802460429
commit d12e00c6fb
7 changed files with 49 additions and 47 deletions

View File

@@ -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);