Changeset 5736 in ntrip for trunk/BNC/src/PPP/pppMain.cpp


Ignore:
Timestamp:
Aug 1, 2014, 7:49:40 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppMain.cpp

    r5730 r5736  
    6868  readOptions();
    6969
    70   QListIterator<QSharedPointer<t_options> > it(_options);
    71   while (it.hasNext()) {
    72     QSharedPointer<t_options> opt = it.next();
    73     t_pppThread* pppThread = new t_pppThread(opt.data());
     70  QListIterator<t_options*> iOpt(_options);
     71  while (iOpt.hasNext()) {
     72    const t_options* opt = iOpt.next();
     73    t_pppThread* pppThread = new t_pppThread(opt);
    7474    pppThread->start();
    7575    _pppThreads << pppThread;
     
    9393  _pppThreads.clear();
    9494
     95  QListIterator<t_options*> iOpt(_options);
     96  while (iOpt.hasNext()) {
     97    delete iOpt.next();
     98  }
     99  _options.clear();
     100
    95101  _running = false;
    96102}
     
    100106void t_pppMain::readOptions() {
    101107
     108  QListIterator<t_options*> iOpt(_options);
     109  while (iOpt.hasNext()) {
     110    delete iOpt.next();
     111  }
    102112  _options.clear();
    103113
     
    119129  }
    120130
    121   QListIterator<QString> it(settings.value("PPP/staTable").toStringList());
    122   while (it.hasNext()) {
    123     QStringList hlp = it.next().split(",");
     131  QListIterator<QString> iSta(settings.value("PPP/staTable").toStringList());
     132  while (iSta.hasNext()) {
     133    QStringList hlp = iSta.next().split(",");
    124134
    125135    if (hlp.size() < 9) {
     
    127137    }
    128138
    129     QSharedPointer<t_options> opt(new t_options());
     139    t_options* opt = new t_options();
    130140
    131141    opt->_realTime    = realTime;
Note: See TracChangeset for help on using the changeset viewer.