Changeset 4363 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp


Ignore:
Timestamp:
Jun 25, 2012, 5:26:52 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcedit.cpp

    r4257 r4363  
    115115      while (it.hasNext()) {
    116116        QString filePath = it.next().filePath();
    117         t_rnxObsFile* rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input);
     117        try {
     118          t_rnxObsFile* rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input);
     119          rnxObsFiles.append(rnxObsFile);
     120        }
     121        catch (...) {
     122          cerr << "Error in rnxObsFile initialization" << endl;
     123        }
     124      }
     125    }
     126    else {
     127      try {
     128        t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
    118129        rnxObsFiles.append(rnxObsFile);
    119130      }
    120     }
    121     else {
    122       t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
    123       rnxObsFiles.append(rnxObsFile);
     131      catch (...) {
     132        cerr << "Error in rnxObsFile initialization" << endl;
     133      }
    124134    }
    125135  }
Note: See TracChangeset for help on using the changeset viewer.