From 8a98ee851e15b642883fbff0d44692fbb12bb183 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 26 Apr 2016 19:39:43 +0200 Subject: [PATCH] some nver read compil fixes --- src/gui/movieplayer.cpp | 2 +- src/neutrino.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 6842cb732..f6576ed0e 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -576,7 +576,7 @@ bool CMoviePlayerGui::SelectFile() if (moviebrowser->getSelectedFiles(filelist, milist)) { filelist_it = filelist.begin(); p_movie_info = *(milist.begin()); - file = &(*filelist_it); +// file = &(*filelist_it); } else if ((file = moviebrowser->getSelectedFile()) != NULL) { p_movie_info = moviebrowser->getCurrentMovieInfo(); diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 2cc5de6d2..7475b55a6 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -4727,12 +4727,11 @@ void CNeutrinoApp::migrateConfig(const char *fname) migconf.loadConfig(fname); /* here we do a simple rename of config file keys */ int magic = -424242; /* obviously a value that does not appear in real cases */ - int tmp = magic; int i; for (i = 0; key_rename[i].from != NULL; i++) { const char *from = key_rename[i].from; const char *to = key_rename[i].to; - tmp = migconf.getInt32(from, magic); + int tmp = migconf.getInt32(from, magic); if (tmp == magic) /* old key does not exist */ continue; /* only set new key to old value if the new key does not yet exist */