Changeset 7609 in ntrip for trunk/BNC/src/PPP_SSR_I/pppClient.cpp
- Timestamp:
- Dec 7, 2015, 5:47:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_SSR_I/pppClient.cpp
r7572 r7609 60 60 _ephUser = new bncEphUser(false); 61 61 _pppUtils = new t_pppUtils(); 62 _newEph = 0; 62 63 } 63 64 … … 71 72 delete _log; 72 73 delete _pppUtils; 74 if (_newEph) 75 delete _newEph; 73 76 } 74 77 … … 292 295 } 293 296 } 297 else { 298 delete satData; 299 } 294 300 } 295 301 … … 348 354 void t_pppClient::putEphemeris(const t_eph* eph) { 349 355 bool check = _opt->_realTime; 356 if (_newEph) 357 delete _newEph; 358 _newEph = 0; 350 359 const t_ephGPS* ephGPS = dynamic_cast<const t_ephGPS*>(eph); 351 360 const t_ephGlo* ephGlo = dynamic_cast<const t_ephGlo*>(eph); … … 353 362 const t_ephBDS* ephBDS = dynamic_cast<const t_ephBDS*>(eph); 354 363 if (ephGPS) { 355 _ ephUser->putNewEph(new t_ephGPS(*ephGPS), check);364 _newEph = new t_ephGPS(*ephGPS); 356 365 } 357 366 else if (ephGlo) { 358 _ ephUser->putNewEph(new t_ephGlo(*ephGlo), check);367 _newEph = new t_ephGlo(*ephGlo); 359 368 } 360 369 else if (ephGal) { 361 _ ephUser->putNewEph(new t_ephGal(*ephGal), check);370 _newEph = new t_ephGal(*ephGal); 362 371 } 363 372 else if (ephBDS) { 364 _ephUser->putNewEph(new t_ephBDS(*ephBDS), check); 365 } 373 _newEph = new t_ephBDS(*ephBDS); 374 } 375 376 if (_newEph) { 377 _ephUser->putNewEph(_newEph, check); 378 } 366 379 } 367 380
Note:
See TracChangeset
for help on using the changeset viewer.