diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index c50e05016..b15782b13 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -1925,8 +1925,7 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action) } } - TFilename ini; - ini.tempdir(); + TFilename ini; ini.tempdir(); ini.add("ActAnal.ini"); // Parentesi strategiche per salvare il config @@ -1936,7 +1935,7 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action) TString4 para; para << LF_MOVANA; config.set_paragraph(para); - + config.remove_all(); config.set(MOVANA_NUMREG, nExist); config.set(MOVANA_NUMREGCG, msk.get(F_NUMREG)); } diff --git a/cg/cg6900.cpp b/cg/cg6900.cpp index 4cea30bd8..1eb35687e 100755 --- a/cg/cg6900.cpp +++ b/cg/cg6900.cpp @@ -49,7 +49,6 @@ void TInv_cont::main_loop() return; TMask* msk = new TMask("cg6900a"); - KEY tasto; if (_ditta != 0) { @@ -91,8 +90,7 @@ void TInv_cont::main_loop() else msk->set_handler(F_NUMULINV, messaggio_hnd); - tasto = msk->run(); - + const KEY tasto = msk->run(); if (tasto != K_ENTER) { delete msk; @@ -665,8 +663,8 @@ bool TInv_cont::esegui_controlli() { _esiste_record = leggi_header(); - if (!controlli()) return FALSE; - + if (!controlli()) + return FALSE; return TRUE; } @@ -678,7 +676,8 @@ void TInv_cont::setta_parametri_record(TMask& m,const TString& flag) bool TInv_cont::controlli() { - if (!_esiste_ditta && !_esiste_record) return TRUE; //Mi trovo in una condizione normale + if (!_esiste_ditta && !_esiste_record) + return TRUE; //Mi trovo in una condizione normale if (_esiste_ditta && !_esiste_record) return error_box("Rilevato stato di ripartenza con dati contradditori: programma interrotto");