Changeset 2026 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 25, 2009, 6:59:50 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppthread.cpp

    r2024 r2026  
    109109  QMutexLocker locker(&_mutex);
    110110  QListIterator<p_obs> it(obsList);
     111
     112  delete _data;
     113  _data = new t_data();
     114
    111115  while (it.hasNext()) {
    112116    p_obs          pp  = it.next();
     
    114118    QByteArray staID = QByteArray(obs->StatID);
    115119    if (staID == _staID) {
    116       if (!_data) {
    117         _data = new t_data();
    118         _data->GPSWeek  = obs->GPSWeek;
    119         _data->GPSWeeks = obs->GPSWeeks;
    120       }
     120      _data->GPSWeek  = obs->GPSWeek;
     121      _data->GPSWeeks = obs->GPSWeeks;
     122
    121123      ++_data->numSat;
    122124      _data->prn[_data->numSat] =
Note: See TracChangeset for help on using the changeset viewer.