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

@@ -99,9 +99,9 @@ void CLanguage::setLanguage(std::string _language){
//-----------------------------------------------------------------------------
std::string CLanguage::getTranslation(std::string id){
std::string trans=ConfigLanguage->getString(id,"");
if(trans=="")
if(trans.empty())
trans=NeutrinoLanguage->getString(id,"");
if(trans=="")
if(trans.empty())
trans=DefaultLanguage->getString(id,"");
return trans;
}