From b90991da77b9ba797d3b2f01a40f45b921dde4d5 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 10 Feb 2015 14:55:45 +0100 Subject: [PATCH] moviebrowser/player: remove unneeded (char *) casts --- src/gui/moviebrowser.cpp | 2 +- src/gui/movieplayer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index fab0174cd..59b06740e 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -3907,7 +3907,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; diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index d4f8c3271..c37d741ab 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -603,7 +603,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];