use empty to check string

This commit is contained in:
Jacek Jendrzej
2015-01-09 17:15:11 +01:00
parent aea7e1f772
commit 2b5e7b5ba3
34 changed files with 170 additions and 170 deletions

View File

@@ -74,7 +74,7 @@ int COsdLangSetup::exec(CMenuTarget* parent, const std::string &actionKey)
if(parent != NULL)
parent->hide();
if (actionKey != "") {
if (!actionKey.empty()) {
g_settings.language = actionKey;
g_Locale->loadLocale(g_settings.language.c_str());
return menu_return::RETURN_EXIT;