Changeset 5736 in ntrip for trunk/BNC/src/PPP/pppMain.cpp
- Timestamp:
- Aug 1, 2014, 7:49:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5730 r5736 68 68 readOptions(); 69 69 70 QListIterator< QSharedPointer<t_options> > it(_options);71 while (i t.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); 74 74 pppThread->start(); 75 75 _pppThreads << pppThread; … … 93 93 _pppThreads.clear(); 94 94 95 QListIterator<t_options*> iOpt(_options); 96 while (iOpt.hasNext()) { 97 delete iOpt.next(); 98 } 99 _options.clear(); 100 95 101 _running = false; 96 102 } … … 100 106 void t_pppMain::readOptions() { 101 107 108 QListIterator<t_options*> iOpt(_options); 109 while (iOpt.hasNext()) { 110 delete iOpt.next(); 111 } 102 112 _options.clear(); 103 113 … … 119 129 } 120 130 121 QListIterator<QString> i t(settings.value("PPP/staTable").toStringList());122 while (i t.hasNext()) {123 QStringList hlp = i t.next().split(",");131 QListIterator<QString> iSta(settings.value("PPP/staTable").toStringList()); 132 while (iSta.hasNext()) { 133 QStringList hlp = iSta.next().split(","); 124 134 125 135 if (hlp.size() < 9) { … … 127 137 } 128 138 129 QSharedPointer<t_options> opt(new t_options());139 t_options* opt = new t_options(); 130 140 131 141 opt->_realTime = realTime;
Note:
See TracChangeset
for help on using the changeset viewer.