From 64727c496250e87d8eeac638521201c4822db93e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 7 Apr 2021 21:26:16 +0200 Subject: [PATCH] imdb/tmdb: rename 'create' methods to 'getter' functions For reasons of plausibility, name does not suggest a "Getter" function supplement to: - imdb/tmdb: unify some funtions --- src/gui/epgview.cpp | 8 ++++---- src/gui/imdb.cpp | 4 ++-- src/gui/imdb.h | 4 ++-- src/gui/tmdb.cpp | 4 ++-- src/gui/tmdb.h | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 14a51fb1a..7a6f9572f 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -1171,8 +1171,8 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start epgText_saved = epgText; epgText.clear(); tmdb_active = !tmdb_active; - epgTextSwitch = tmdb->CreateMovieText(); - processTextToArray(tmdb->CreateEPGText(), 0, tmdb->hasCover()); + epgTextSwitch = tmdb->getMovieText(); + processTextToArray(tmdb->getEPGText(), 0, tmdb->hasCover()); textCount = epgText.size(); stars = tmdb->getStars(); showText(showPos, sy + toph, tmdb_active || (imdb_active && imdb->gotPoster())); @@ -1664,8 +1664,8 @@ int CEpgData::showIMDb(bool splash) epgText.clear(); //data - epgTextSwitch = imdb->CreateMovieText(); - processTextToArray(imdb->CreateEPGText(), 0, imdb->gotPoster()); + epgTextSwitch = imdb->getMovieText(); + processTextToArray(imdb->getEPGText(), 0, imdb->gotPoster()); textCount = epgText.size(); diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index a38602214..21cd04372 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -364,7 +364,7 @@ bool CIMDB::checkIMDbElement(std::string element) return true; } -std::string CIMDB::CreateEPGText() +std::string CIMDB::getEPGText() { if (m["imdbID"].empty() || m["Response"] != "True") return g_Locale->getText(LOCALE_IMDB_DATA_FAILED); @@ -408,7 +408,7 @@ std::string CIMDB::CreateEPGText() return epgtext; } -std::string CIMDB::CreateMovieText() +std::string CIMDB::getMovieText() { std::string movietext(""); diff --git a/src/gui/imdb.h b/src/gui/imdb.h index 9c421f882..9bf0af49c 100644 --- a/src/gui/imdb.h +++ b/src/gui/imdb.h @@ -44,8 +44,8 @@ class CIMDB void StringReplace(std::string &str, const std::string search, const std::string rstr); void cleanup(); - std::string CreateEPGText(); - std::string CreateMovieText(); + std::string getEPGText(); + std::string getMovieText(); bool gotPoster(); diff --git a/src/gui/tmdb.cpp b/src/gui/tmdb.cpp index 5620c4f40..012cf7e03 100644 --- a/src/gui/tmdb.cpp +++ b/src/gui/tmdb.cpp @@ -189,7 +189,7 @@ bool cTmdb::GetMovieDetails(std::string lang, bool second) return false; } -std::string cTmdb::CreateEPGText() +std::string cTmdb::getEPGText() { std::string epgtext(""); @@ -212,7 +212,7 @@ std::string cTmdb::CreateEPGText() return epgtext; } -std::string cTmdb::CreateMovieText() +std::string cTmdb::getMovieText() { std::string movietext(""); diff --git a/src/gui/tmdb.h b/src/gui/tmdb.h index 4d37f5bd8..12214385b 100644 --- a/src/gui/tmdb.h +++ b/src/gui/tmdb.h @@ -61,8 +61,8 @@ class cTmdb ~cTmdb(); static cTmdb* getInstance(); void setTitle(std::string epgtitle); - std::string CreateEPGText(); - std::string CreateMovieText(); + std::string getEPGText(); + std::string getMovieText(); std::string getTitle() { return minfo.epgtitle;} std::string getOrgTitle() { return minfo.original_title;}