Changeset 7860


Ignore:
Timestamp:
08/06/06 19:43:10 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7859 r7860  
    2121
    2222   * datacenter/macros/checkstardone.C,
    23      datacenter/macros/checkfileavail.C:
     23     datacenter/macros/checkfileavail.C,
     24     datacenter/macros/filldotraw.C:
    2425     - fixed. res was still not correctly deleted
    2526
  • trunk/MagicSoft/Mars/datacenter/macros/filldotraw.C

    r7777 r7860  
    8888
    8989    TSQLRow *row = res->Next();
    90     if (!row)
     90
     91    TString rc = row ? (*row)[0] : "";
     92
     93    delete res;
     94
     95    if (rc.IsNull())
    9196    {
    9297        cout << "ERROR - No result from query: " << query << endl;
     
    9499    }
    95100
    96     Int_t rc = atoi((*row)[0]);
    97 
    98     delete res;
    99 
    100     return rc;
     101    return rc.Atoi();
    101102}
    102103
Note: See TracChangeset for help on using the changeset viewer.