Changeset 3671 in ntrip


Ignore:
Timestamp:
Feb 11, 2012, 6:33:19 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncephuser.cpp

    r3670 r3671  
    154154//
    155155////////////////////////////////////////////////////////////////////////////
    156 void bncEphUser::putNewEph(t_eph* newEph) {
     156t_irc bncEphUser::putNewEph(t_eph* newEph) {
    157157
    158158  QMutexLocker locker(&_mutex);
    159159
    160160  if (!newEph) {
    161     return;
     161    return failure;
    162162  }
    163163
    164164  QString prn = newEph->prn();
     165
     166  t_irc irc = failure;
    165167
    166168  if (_eph.contains(prn)) {
     
    170172      _eph.value(prn)->prev = _eph.value(prn)->last;
    171173      _eph.value(prn)->last = newEph;
     174      irc = success;
    172175    }
    173176  }
    174177  else {
    175178    _eph.insert(prn, new t_ephPair(newEph));
    176   }
    177   ephBufferChanged();
     179    irc = success;
     180  }
     181
     182  if (irc == success) {
     183    ephBufferChanged();
     184  }
     185
     186  return irc;
    178187}
    179188
  • trunk/BNC/bncephuser.h

    r3670 r3671  
    105105  }
    106106
    107   void putNewEph(t_eph* eph);
     107  t_irc putNewEph(t_eph* eph);
    108108
    109109 public slots:
  • trunk/BNC/bncpostprocess.cpp

    r3670 r3671  
    9797  cout << "corrFile: " << _opt->corrFileName.toAscii().data() << endl;
    9898
    99   t_eph* eph;
     99  t_eph* eph = 0;
    100100  while (_rnxNavFile->getNextEph(eph) == success) {
    101     _pppClient->putNewEph(eph);
     101    if (_pppClient->putNewEph(eph) != success) {
     102      delete eph; eph = 0;
     103    }
    102104  }
    103105
Note: See TracChangeset for help on using the changeset viewer.