cTmdb: simplyfy hintbox calls

Origin commit data
------------------
Commit: 43383329a7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
This commit is contained in:
2016-11-20 22:54:51 +01:00
parent b159cccae6
commit deb6aec16a

View File

@@ -63,18 +63,15 @@ cTmdb::cTmdb(std::string epgtitle)
key = g_settings.tmdb_api_key;
#endif
CHintBox* box = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
box->paint();
CHintBox hintbox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
hintbox.paint();
std::string lang = Lang2ISO639_1(g_settings.language);
GetMovieDetails(lang);
if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en")
GetMovieDetails("en");
if (box != NULL) {
box->hide();
delete box;
}
hintbox.hide();
}
cTmdb::~cTmdb()