Changeset 3671 in ntrip for trunk/BNC/bncephuser.cpp


Ignore:
Timestamp:
Feb 11, 2012, 6:33:19 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.