Changeset 1101 in ntrip


Ignore:
Timestamp:
Sep 3, 2008, 1:19:47 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r1100 r1101  
    185185      if (year < 100) year += 2000;
    186186     
    187       QDateTime dateTime(QDate(int(year), int(month), int(day)),
    188                          QTime(int(hour), int(minute), int(second)), Qt::UTC);
    189 
    190       GPSweekFromDateAndTime(dateTime, _GPSweek, _GPSweeks);
     187      QDateTime* dateTime = new QDateTime(QDate(int(year), int(month), int(day)),
     188                                          QTime(int(hour), int(minute), int(second)), Qt::UTC);
     189
     190      GPSweekFromDateAndTime(*dateTime, _GPSweek, _GPSweeks);
     191
     192      delete dateTime;
     193
    191194      _TOC = _GPSweeks;
    192195    }
     
    321324      if (year < 100) year += 2000;
    322325     
    323       QDateTime dateTime(QDate(int(year), int(month), int(day)),
    324                          QTime(int(hour), int(minute), int(second)), Qt::UTC);
    325 
    326       GPSweekFromDateAndTime(dateTime, _GPSweek, _GPSweeks);
     326      QDateTime* dateTime = new QDateTime(QDate(int(year), int(month), int(day)),
     327                                          QTime(int(hour), int(minute), int(second)), Qt::UTC);
     328
     329      GPSweekFromDateAndTime(*dateTime, _GPSweek, _GPSweeks);
    327330 
     331      delete dateTime;
     332
    328333      //// beg test
    329334      //// _gps_utc = 14.0;
Note: See TracChangeset for help on using the changeset viewer.