Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            : tolto controllo inutile stringa.ok()


git-svn-id: svn://10.65.10.50/trunk@9232 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2000-10-10 08:36:57 +00:00
parent e855b65516
commit 561dd5e9b1
8 changed files with 43 additions and 43 deletions

View File

@ -317,17 +317,17 @@ bool TStampaDonBen::set_print(int m)
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_categorie.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_categorie.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_categorie.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_categorie.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_categorie.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_categorie.add((const char*) catses);
_numini = _msk->get_int(F_NUMINI);
_numfin = _msk->get_int(F_NUMFIN);

View File

@ -187,17 +187,17 @@ bool TAttribuzioneBenemerenze::set_print(int)
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_catdon.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_catdon.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_catdon.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_catdon.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_catdon.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_catdon.add((const char*) catses);
_tabben.destroy();
TTable ben("BNZ");

View File

@ -319,17 +319,17 @@ bool TControlloBenemerenze::set_print(int m)
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_catdon.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_catdon.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_catdon.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_catdon.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_catdon.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_catdon.add((const char*) catses);
current_cursor()->set_filterfunction (filter_func_ctrlben);
reset_print();

View File

@ -524,17 +524,17 @@ bool TStatSogxCom::riepilogo()
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_categorie.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_categorie.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_categorie.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_categorie.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_categorie.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_categorie.add((const char*) catses);
_cur->set_filterfunction(filter_func_statxcom);

View File

@ -666,17 +666,17 @@ bool TStampaScadenze::set_print(int m)
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_categorie.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_categorie.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_categorie.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_categorie.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_categorie.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_categorie.add((const char*) catses);
// filtro per idoneo e non escluso
//if (_usomodo)

View File

@ -361,17 +361,17 @@ bool TStampaUrgenze::set_print(int)
const TString16 catqua = _msk->get(F_CAT4);
const TString16 catqui = _msk->get(F_CAT5);
const TString16 catses = _msk->get(F_CAT6);
if (catpri.not_empty() && catpri.ok())
if (catpri.not_empty())
_categorie.add((const char*) catpri);
if (catsec.not_empty() && catsec.ok())
if (catsec.not_empty())
_categorie.add((const char*) catsec);
if (catter.not_empty() && catter.ok())
if (catter.not_empty())
_categorie.add((const char*) catter);
if (catqua.not_empty() && catqua.ok())
if (catqua.not_empty())
_categorie.add((const char*) catqua);
if (catqui.not_empty() && catqui.ok())
if (catqui.not_empty())
_categorie.add((const char*) catqui);
if (catses.not_empty() && catses.ok())
if (catses.not_empty())
_categorie.add((const char*) catses);
// filtro per tipizzazione
TString filtro;
@ -381,15 +381,15 @@ bool TStampaUrgenze::set_print(int)
const TString16 kell = _msk->get(F_KELL);
const TString16 fenotiporh = _msk->get(F_FENOTIPORH);
const TString16 du = _msk->get(F_DU);
if ((gruppoab0.ok()) && (gruppoab0.not_empty()))
if (gruppoab0.not_empty())
filtro << " && (" << SOG_GRUPPOAB0 << " == \"" << gruppoab0 << "\")";
if ((rhantid.ok()) && (rhantid.not_empty()))
if (rhantid.not_empty())
filtro << " && (" << SOG_RHANTID << " == \"" << rhantid << "\")";
if ((kell.ok()) && (kell.not_empty()))
if (kell.not_empty())
filtro << " && (" << SOG_KELL << " == \"" << kell << "\")";
if ((fenotiporh.ok()) && (fenotiporh.not_empty()))
if (fenotiporh.not_empty())
filtro << " && (" << SOG_FENOTIPORH << " == \"" << fenotiporh << "\")";
if ((du.ok()) && (du.not_empty()))
if (du.not_empty())
filtro << " && (" << SOG_DU << " == \"" << du << "\")";
_giorni = _msk->get_long(F_GIORNI);
_tipodon = _msk->get(F_TIPODON);

View File

@ -192,7 +192,7 @@ void TStampaIncompleti::header_sezione(const TString16 codsez, const TString16 c
intestazione << codsot;
intestazione << " ";
intestazione << densez;
if ((densot.ok())&& (densot.not_empty()))
if (densot.not_empty())
{
intestazione << "/";
intestazione << densot;

View File

@ -127,7 +127,7 @@ void TStampaNonDom::header_sezione(const TString16 codsez, const TString16 codso
intestazione << codsot;
intestazione << ' ';
intestazione << densez;
if ((densot.ok())&& (densot.not_empty()))
if (densot.not_empty())
{
intestazione << '/';
intestazione << densot;