mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
infoviewer: Updated naming convention to consistently indicate return values
'getter' methods do convey a return value,
but getLiveStreamInfo() returns nothing, therefore we should use
a more appropriate name, such as 'initialize'
or 'modify', improving code clarity and adherence
to best practices.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 16f0d6c6c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-04-12 (Wed, 12 Apr 2023)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -903,7 +903,7 @@ void CInfoViewer::setInfobarTimeout(int timeout_ext)
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout + timeout_ext);
|
||||
}
|
||||
|
||||
void CInfoViewer::getLivestreamInfo()
|
||||
void CInfoViewer::initLiveStreamInfo()
|
||||
{
|
||||
CZapitChannel *cc = CZapit::getInstance()->GetCurrentChannel();
|
||||
bool web_mode = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio);
|
||||
@@ -1054,7 +1054,7 @@ bool CInfoViewer::showLivestreamInfo()
|
||||
bool web_mode = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio);
|
||||
if (web_mode && (info_CurrentNext.current_uniqueKey == 0 && info_CurrentNext.next_uniqueKey == 0))
|
||||
{
|
||||
getLivestreamInfo();
|
||||
initLiveStreamInfo();
|
||||
|
||||
display_Info(_livestreamInfo1.c_str(), _livestreamInfo2.c_str(), false);
|
||||
infoViewerBB->showBBButtons(true);
|
||||
|
@@ -151,7 +151,7 @@ class CInfoViewer : public sigc::trackable
|
||||
void reset_allScala();
|
||||
void check_channellogo_ca_SettingsChange();
|
||||
void sendNoEpg(const t_channel_id channel_id);
|
||||
void getLivestreamInfo();
|
||||
void initLiveStreamInfo();
|
||||
bool showLivestreamInfo();
|
||||
|
||||
CComponentsWindowMax *ecmInfoBox; //NI
|
||||
@@ -217,7 +217,7 @@ class CInfoViewer : public sigc::trackable
|
||||
int getSwitchMode() {return zap_mode;}
|
||||
void resetSwitchMode() {setSwitchMode(IV_MODE_DEFAULT);}
|
||||
|
||||
void get_livestreamInfo() { getLivestreamInfo(); }
|
||||
void get_livestreamInfo() { initLiveStreamInfo(); }
|
||||
std::string get_livestreamInfo1() { return _livestreamInfo1; }
|
||||
std::string get_livestreamInfo2() { return _livestreamInfo2; }
|
||||
|
||||
|
Reference in New Issue
Block a user