Changeset 4137 in ntrip for trunk/BNC/rinex/rnxobsfile.cpp


Ignore:
Timestamp:
May 7, 2012, 4:42:13 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxobsfile.cpp

    r4123 r4137  
    645645// Write Header
    646646////////////////////////////////////////////////////////////////////////////
    647 void t_rnxObsFile::writeHeader(const QMap<QString, QString>& txtMap) {
     647void t_rnxObsFile::writeHeader(const QMap<QString, QString>* txtMap) {
    648648
    649649  bncApp* app = (bncApp*) qApp;
     
    652652  QStringList comments;
    653653
    654   QMapIterator<QString, QString> it(txtMap);
    655   while (it.hasNext()) {
    656     it.next();
    657     if      (it.key() == "RUN BY") {
    658       runBy = it.value();
    659     }
    660     else if (it.key() == "COMMENT") {
    661       comments = it.value().split("\\n", QString::SkipEmptyParts);
     654  if (txtMap) {
     655    QMapIterator<QString, QString> it(*txtMap);
     656    while (it.hasNext()) {
     657      it.next();
     658      if      (it.key() == "RUN BY") {
     659        runBy = it.value();
     660      }
     661      else if (it.key() == "COMMENT") {
     662        comments = it.value().split("\\n", QString::SkipEmptyParts);
     663      }
    662664    }
    663665  }
Note: See TracChangeset for help on using the changeset viewer.