CImageInfo: use call of getTextFromFile() without explicit object

This commit is contained in:
2015-04-14 11:31:13 +02:00
committed by svenhoefer
parent 884e3b7cb5
commit cd53fae2c6

View File

@@ -339,14 +339,13 @@ string CImageInfo::getLicenseText()
file += g_settings.language;
file += ".license";
CComponentsText txt;
string res = txt.getTextFromFile(file);
string res = CComponentsText::getTextFromFile(file);
//assign default text, if language file is not available
if(res.empty()){
file = LICENSEDIR;
file += "english.license";
res = txt.getTextFromFile(file);
res = CComponentsText::getTextFromFile(file);
}
return res;