Changeset 2069 in ntrip for trunk/BNC/bncpppclient.cpp


Ignore:
Timestamp:
Dec 1, 2009, 4:08:37 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2068 r2069  
    183183void bncPPPclient::slotNewCorrections(QList<QString> corrList) {
    184184  QMutexLocker locker(&_mutex);
     185
     186  if (corrList.size() == 0) {
     187    return;
     188  }
     189
     190  // Remove All Corrections
     191  // ----------------------
     192  QMapIterator<QString, t_corr*> ic(_corr);
     193  while (ic.hasNext()) {
     194    ic.next();
     195    delete ic.value();
     196  }
     197  _corr.clear();
     198
    185199  QListIterator<QString> it(corrList);
    186200  while (it.hasNext()) {
Note: See TracChangeset for help on using the changeset viewer.