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


Ignore:
Timestamp:
Aug 6, 2014, 11:34:36 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5795 r5810  
    7070    readOptions();
    7171
    72     QListIterator<t_options*> iOpt(_options);
     72    QListIterator<t_pppOptions*> iOpt(_options);
    7373    while (iOpt.hasNext()) {
    74       const t_options* opt = iOpt.next();
    75       t_pppThread* pppThread = new t_pppThread(opt);
    76       pppThread->start();
    77       _pppThreads << pppThread;
     74      const t_pppOptions* opt = iOpt.next();
     75      t_pppInclude.hread* pppInclude.hread = new t_pppInclude.hread(opt);
     76      pppInclude.hread->start();
     77      _pppInclude.hreads << pppInclude.hread;
    7878      _running = true;
    7979    }
     
    9292  }
    9393
    94   QListIterator<t_pppThread*> it(_pppThreads);
     94  QListIterator<t_pppInclude.hread*> it(_pppInclude.hreads);
    9595  while (it.hasNext()) {
    96     t_pppThread* pppThread = it.next();
    97     pppThread->exit();
    98   }
    99   _pppThreads.clear();
    100 
    101   QListIterator<t_options*> iOpt(_options);
     96    t_pppInclude.hread* pppInclude.hread = it.next();
     97    pppInclude.hread->exit();
     98  }
     99  _pppInclude.hreads.clear();
     100
     101  QListIterator<t_pppOptions*> iOpt(_options);
    102102  while (iOpt.hasNext()) {
    103103    delete iOpt.next();
     
    112112void t_pppMain::readOptions() {
    113113
    114   QListIterator<t_options*> iOpt(_options);
     114  QListIterator<t_pppOptions*> iOpt(_options);
    115115  while (iOpt.hasNext()) {
    116116    delete iOpt.next();
     
    143143    }
    144144
    145     t_options* opt = new t_options();
     145    t_pppOptions* opt = new t_pppOptions();
    146146
    147147    opt->_realTime    = realTime;
Note: See TracChangeset for help on using the changeset viewer.