Applying patch from issue 1257: "Code cleanup: removal of unnessesary variables, fixed C-style pointer casting" on behalf of lebedev

This commit is contained in:
natureh
2012-02-25 16:10:20 +01:00
parent 59623f63ab
commit ea5a4f73cf
66 changed files with 131 additions and 208 deletions

View File

@@ -161,11 +161,11 @@ void DirBrowser::updateVolumes () {
}
int updateVolumesUI (void* br) {
((DirBrowser*)br)->updateVolumes ();
(static_cast<DirBrowser*>(br))->updateVolumes ();
return 1;
}
int updateDirTreeUI (void* br) {
((DirBrowser*)br)->updateDirTreeRoot ();
(static_cast<DirBrowser*>(br))->updateDirTreeRoot ();
return 0;
}
@@ -282,8 +282,6 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath) {
Gtk::TreeModel::Path path;
path.append_index(0);
int end = 0;
int beg = 0;
char* dcpy = strdup (absDirPath.c_str());
char* dir = strtok (dcpy, "/\\");
int count = 0;