mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-14 08:53:38 +02:00
moviebrowser/player: remove unneeded (char *) casts
Origin commit data
------------------
Commit: b90991da77
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-10 (Tue, 10 Feb 2015)
This commit is contained in:
committed by
Jacek Jendrzej
parent
ebd1cab3d5
commit
32471804e5
@@ -3907,7 +3907,7 @@ static off64_t truncate_movie(MI_MOVIE_INFO * minfo)
|
|||||||
char spart[255];
|
char spart[255];
|
||||||
int part = 0, tpart = 0;
|
int part = 0, tpart = 0;
|
||||||
bool found = 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;
|
off64_t size = minfo->file.Size;
|
||||||
int len = minfo->length;
|
int len = minfo->length;
|
||||||
int seconds = minfo->bookmarks.end;
|
int seconds = minfo->bookmarks.end;
|
||||||
|
@@ -603,7 +603,7 @@ bool CMoviePlayerGui::PlayBackgroundStart(const std::string &file, const std::st
|
|||||||
int agen[] = { 18, 16, 12, 6, 0 };
|
int agen[] = { 18, 16, 12, 6, 0 };
|
||||||
for (int i = 0; ages[i] && age < 0; i++) {
|
for (int i = 0; ages[i] && age < 0; i++) {
|
||||||
const char *n = name.c_str();
|
const char *n = name.c_str();
|
||||||
char *h = (char *) n;
|
const char *h = n;
|
||||||
while ((age < 0) && (h = strstr(h, ages[i])))
|
while ((age < 0) && (h = strstr(h, ages[i])))
|
||||||
if ((h == n) || !isdigit(*(h - 1)))
|
if ((h == n) || !isdigit(*(h - 1)))
|
||||||
age = agen[i];
|
age = agen[i];
|
||||||
|
Reference in New Issue
Block a user