mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
channellist: remove bogus (char *) casts
Origin commit data
------------------
Branch: ni/coolstream
Commit: b325268123
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-10 (Tue, 10 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Jacek Jendrzej
parent
18fd7cb227
commit
8df72acd9c
@@ -1298,7 +1298,7 @@ int CChannelList::numericZap(int key)
|
|||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
if (lastchan != chn) {
|
if (lastchan != chn) {
|
||||||
snprintf((char*) &valstr, sizeof(valstr), "%d", chn);
|
snprintf(valstr, sizeof(valstr), "%d", chn);
|
||||||
|
|
||||||
while(strlen(valstr) < maxchansize)
|
while(strlen(valstr) < maxchansize)
|
||||||
strcat(valstr,"-"); //"_"
|
strcat(valstr,"-"); //"_"
|
||||||
@@ -1862,7 +1862,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
|||||||
title_offset=6;
|
title_offset=6;
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf((char*) tmp, sizeof(tmp), "%d", this->historyMode ? pos : chan->number);
|
snprintf(tmp, sizeof(tmp), "%d", this->historyMode ? pos : chan->number);
|
||||||
|
|
||||||
CChannelEvent *p_event=NULL;
|
CChannelEvent *p_event=NULL;
|
||||||
if (displayNext)
|
if (displayNext)
|
||||||
@@ -1974,7 +1974,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
|||||||
{
|
{
|
||||||
struct tm *pStartZeit = localtime(&p_event->startTime);
|
struct tm *pStartZeit = localtime(&p_event->startTime);
|
||||||
|
|
||||||
snprintf((char*) tmp, sizeof(tmp), "%02d:%02d", pStartZeit->tm_hour, pStartZeit->tm_min);
|
snprintf(tmp, sizeof(tmp), "%02d:%02d", pStartZeit->tm_hour, pStartZeit->tm_min);
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(x+ 5+ numwidth+ 6, ypos+ xtheight, width- numwidth- 20- 15 -prg_offset, tmp, tcolor);
|
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(x+ 5+ numwidth+ 6, ypos+ xtheight, width- numwidth- 20- 15 -prg_offset, tmp, tcolor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2318,7 +2318,7 @@ void CChannelList::processTextToArray(std::string text, int screening) // UTF-8
|
|||||||
std::string aktWord = "";
|
std::string aktWord = "";
|
||||||
int aktWidth = 0;
|
int aktWidth = 0;
|
||||||
text += ' ';
|
text += ' ';
|
||||||
char* text_= (char*) text.c_str();
|
const char *text_= text.c_str();
|
||||||
|
|
||||||
while (*text_!=0)
|
while (*text_!=0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user