Changeset 2407 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 10/20/03 15:54:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
r2278 r2407 14 14 ClassImp(StarCatalog); 15 15 16 StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), f Entries(0), fSinAngle(0), fCosAngle(1)16 StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), fSao(NULL), fSrt(NULL), fEntries(0), fSinAngle(0), fCosAngle(1) 17 17 { 18 18 // p = pointer to MainFrame (not owner) … … 22 22 // 23 23 File idx("sao/sao-sort.idx", "r"); 24 25 24 if (!idx) 26 exit(0);25 return; 27 26 28 27 while (!idx.Eof()) … … 52 51 StarCatalog::~StarCatalog() 53 52 { 54 delete fSrt; 55 delete fSao; 53 if (fSrt) 54 delete fSrt; 55 if (fSao) 56 delete fSao; 56 57 } 57 58 … … 647 648 // --------- search for stars in catalog ---------- 648 649 // 650 if (fEntries==0) 651 return; 652 649 653 int count = 0; 650 654 int deleted = 0;
Note:
See TracChangeset
for help on using the changeset viewer.