Ignore:
Timestamp:
10/20/03 15:54:10 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/catalog/StarCatalog.cc

    r2278 r2407  
    1414ClassImp(StarCatalog);
    1515
    16 StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), fEntries(0), fSinAngle(0), fCosAngle(1)
     16StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), fSao(NULL), fSrt(NULL), fEntries(0), fSinAngle(0), fCosAngle(1)
    1717{
    1818    // p = pointer to MainFrame (not owner)
     
    2222    //
    2323    File idx("sao/sao-sort.idx", "r");
    24 
    2524    if (!idx)
    26         exit(0);
     25        return;
    2726
    2827    while (!idx.Eof())
     
    5251StarCatalog::~StarCatalog()
    5352{
    54     delete fSrt;
    55     delete fSao;
     53    if (fSrt)
     54        delete fSrt;
     55    if (fSao)
     56        delete fSao;
    5657}
    5758
     
    647648    // --------- search for stars in catalog ----------
    648649    //
     650    if (fEntries==0)
     651        return;
     652
    649653    int count   = 0;
    650654    int deleted = 0;
Note: See TracChangeset for help on using the changeset viewer.