Changeset 3662 in ntrip


Ignore:
Timestamp:
Feb 3, 2012, 6:19:09 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxnavfile.cpp

    r3659 r3662  
    105105t_irc t_rnxNavFile::getNextEph(t_eph* eph) {
    106106
     107  eph = 0;
     108
    107109  while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
    108110    QString line = _stream->readLine();
     
    142144      eph = new t_ephGal(version(), lines);
    143145    }
    144     else {
    145       return failure;
    146     }
    147     if (!eph->ok()) {
    148       delete eph;
    149       eph = 0;
    150       return failure;
     146    if (eph && eph->ok()) {
     147      return success;
    151148    }
    152149  }
    153150
    154   return success;
     151  delete eph;
     152  eph = 0;
     153  return failure;
    155154}
Note: See TracChangeset for help on using the changeset viewer.