mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
moviebrowser/player: remove unneeded (char *) casts
This commit is contained in:
@@ -3908,7 +3908,7 @@ static off64_t truncate_movie(MI_MOVIE_INFO * minfo)
|
||||
char spart[255];
|
||||
int part = 0, tpart = 0;
|
||||
bool found = 0;
|
||||
char * name = (char *) minfo->file.Name.c_str();
|
||||
const char *name = minfo->file.Name.c_str();
|
||||
off64_t size = minfo->file.Size;
|
||||
int len = minfo->length;
|
||||
int seconds = minfo->bookmarks.end;
|
||||
|
@@ -636,7 +636,7 @@ bool CMoviePlayerGui::PlayBackgroundStart(const std::string &file, const std::st
|
||||
int agen[] = { 18, 16, 12, 6, 0 };
|
||||
for (int i = 0; ages[i] && age < 0; i++) {
|
||||
const char *n = name.c_str();
|
||||
char *h = (char *) n;
|
||||
const char *h = n;
|
||||
while ((age < 0) && (h = strstr(h, ages[i])))
|
||||
if ((h == n) || !isdigit(*(h - 1)))
|
||||
age = agen[i];
|
||||
|
Reference in New Issue
Block a user