Changeset 8006 in ntrip


Ignore:
Timestamp:
Aug 9, 2016, 11:30:37 AM (16 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/ephemeris.cpp

    r7923 r8006  
    3636////////////////////////////////////////////////////////////////////////////
    3737void t_eph::setOrbCorr(const t_orbCorr* orbCorr) {
    38   delete _orbCorr;
     38  if (_orbCorr) {
     39    delete _orbCorr;
     40    _orbCorr = 0;
     41  }
    3942  _orbCorr = new t_orbCorr(*orbCorr);
    4043}
     
    4346////////////////////////////////////////////////////////////////////////////
    4447void t_eph::setClkCorr(const t_clkCorr* clkCorr) {
    45   delete _clkCorr;
     48  if (_clkCorr) {
     49    delete _clkCorr;
     50    _clkCorr = 0;
     51  }
    4652  _clkCorr = new t_clkCorr(*clkCorr);
    4753}
Note: See TracChangeset for help on using the changeset viewer.