1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 20:52:09 +01:00

Replace comparisons against "" with empty()

This commit is contained in:
Paul Licameli
2019-03-14 13:04:37 -04:00
parent 804b6c8bd8
commit 50074f2cfe
29 changed files with 67 additions and 67 deletions

View File

@@ -241,10 +241,10 @@ void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames)
if (fullCode.length() < 2)
continue;
if (localLanguageName[code] != wxT("")) {
if (!localLanguageName[code].empty()) {
name = localLanguageName[code];
}
if (localLanguageName[fullCode] != wxT("")) {
if (!localLanguageName[fullCode].empty()) {
name = localLanguageName[fullCode];
}
@@ -252,7 +252,7 @@ void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames)
code = fullCode;
}
if (tempHash[code] != wxT(""))
if (!tempHash[code].empty())
continue;
if (TranslationExists(audacityPathList, code) || code==wxT("en")) {