mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
epgview.cpp: Fix warning about ignored 'nodiscard' attribute in show method
Changed the for-loop in the show method of CEpgData class to properly check both conditions using the logical AND operator. This should ensure that the return value of 'operator!=' is not ignored, which addresses the compiler warning about the 'nodiscard' [-Wunused-result]. - Replaced ',' with '&&' in the loop condition.
This commit is contained in:
@@ -815,7 +815,8 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
char line[256];
|
||||
std::vector<std::string>::iterator description;
|
||||
std::vector<std::string>::iterator item;
|
||||
for (description = epgData.itemDescriptions.begin(), item = epgData.items.begin(); description != epgData.itemDescriptions.end(), item != epgData.items.end(); ++description, ++item) {
|
||||
for (description = epgData.itemDescriptions.begin(), item = epgData.items.begin(); description != epgData.itemDescriptions.end() && item != epgData.items.end(); ++description, ++item)
|
||||
{
|
||||
sprintf(line, "%s: %s", (*(description)).c_str(), (*(item)).c_str());
|
||||
processTextToArray(line);
|
||||
}
|
||||
|
Reference in New Issue
Block a user