mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
themes: remove unneccessary (char *) casts
This commit is contained in:
committed by
Jacek Jendrzej
parent
3fa68cae90
commit
9a6d65937f
@@ -133,9 +133,9 @@ void CThemes::readThemes(CMenuWidget &themes)
|
|||||||
*pos = '\0';
|
*pos = '\0';
|
||||||
if ( p == 1 ) {
|
if ( p == 1 ) {
|
||||||
userThemeFile = "{U}" + (std::string)file;
|
userThemeFile = "{U}" + (std::string)file;
|
||||||
oj = new CMenuForwarder((char*)file, true, "", this, userThemeFile.c_str());
|
oj = new CMenuForwarder(file, true, "", this, userThemeFile.c_str());
|
||||||
} else
|
} else
|
||||||
oj = new CMenuForwarder((char*)file, true, "", this, file);
|
oj = new CMenuForwarder(file, true, "", this, file);
|
||||||
themes.addItem( oj );
|
themes.addItem( oj );
|
||||||
}
|
}
|
||||||
free(themelist[count]);
|
free(themelist[count]);
|
||||||
@@ -362,8 +362,8 @@ void CThemes::move_userDir()
|
|||||||
const char *file = themelist[count]->d_name;
|
const char *file = themelist[count]->d_name;
|
||||||
if (strcmp(file, ".") == 0 || strcmp(file, "..") == 0)
|
if (strcmp(file, ".") == 0 || strcmp(file, "..") == 0)
|
||||||
continue;
|
continue;
|
||||||
const char *dest = (char*)((std::string)USERDIR + file).c_str();
|
const char *dest = ((std::string)USERDIR + file).c_str();
|
||||||
const char *target = (char*)((std::string)THEMEDIR_VAR + file).c_str();
|
const char *target = ((std::string)THEMEDIR_VAR + file).c_str();
|
||||||
printf("[neutrino theme] moving %s to %s\n", dest, target);
|
printf("[neutrino theme] moving %s to %s\n", dest, target);
|
||||||
rename(dest, target);
|
rename(dest, target);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user