From cd53fae2c6f916c1ffca23d61094fccca1f6d65a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 14 Apr 2015 11:31:13 +0200 Subject: [PATCH] CImageInfo: use call of getTextFromFile() without explicit object --- src/gui/imageinfo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 94d06805b..4bee68b10 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -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;