From 2bee33d85500cbed43bc22e2cdd0e5a1dac0d091 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 13 Jan 2013 21:23:40 +0100 Subject: [PATCH] src/gui/scan_setup.cpp -fix compil warnings Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/14a6028667cdc30140b52a1184fbbe97e84bb93e Author: Jacek Jendrzej Date: 2013-01-13 (Sun, 13 Jan 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/scan_setup.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index b335afb79..eb345732a 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -822,13 +822,12 @@ int CScanSetup::showScanMenuSatFind() void CScanSetup::addScanMenuTempSat(CMenuWidget *temp_sat, sat_config_t & satconfig) { temp_sat->addIntroItems(); - CMenuOptionNumberChooser *diseqc; - CMenuOptionNumberChooser *comm; - CMenuOptionNumberChooser *uncomm; - CMenuOptionNumberChooser *unilnb; - CMenuOptionNumberChooser *motor; - CMenuOptionChooser *usals; - CMenuForwarder *mf; + CMenuOptionNumberChooser *diseqc = NULL; + CMenuOptionNumberChooser *comm = NULL; + CMenuOptionNumberChooser *uncomm = NULL; + CMenuOptionNumberChooser *unilnb = NULL; + CMenuOptionNumberChooser *motor = NULL; + CMenuOptionChooser *usals = NULL; bool unicable = (dmode == DISEQC_UNICABLE); if (!unicable) { @@ -864,7 +863,7 @@ void CScanSetup::addScanMenuTempSat(CMenuWidget *temp_sat, sat_config_t & satcon temp_sat->addItem(unilnb); } - mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFL, true, lofL->getValue(), lofL); + CMenuForwarder *mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFL, true, lofL->getValue(), lofL); mf->setHint("", LOCALE_MENU_HINT_SCAN_LOFL); temp_sat->addItem(mf); mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFH, true, lofH->getValue(), lofH);