Changeset 3671 in ntrip for trunk/BNC/bncephuser.cpp
- Timestamp:
- Feb 11, 2012, 6:33:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncephuser.cpp
r3670 r3671 154 154 // 155 155 //////////////////////////////////////////////////////////////////////////// 156 voidbncEphUser::putNewEph(t_eph* newEph) {156 t_irc bncEphUser::putNewEph(t_eph* newEph) { 157 157 158 158 QMutexLocker locker(&_mutex); 159 159 160 160 if (!newEph) { 161 return ;161 return failure; 162 162 } 163 163 164 164 QString prn = newEph->prn(); 165 166 t_irc irc = failure; 165 167 166 168 if (_eph.contains(prn)) { … … 170 172 _eph.value(prn)->prev = _eph.value(prn)->last; 171 173 _eph.value(prn)->last = newEph; 174 irc = success; 172 175 } 173 176 } 174 177 else { 175 178 _eph.insert(prn, new t_ephPair(newEph)); 176 } 177 ephBufferChanged(); 179 irc = success; 180 } 181 182 if (irc == success) { 183 ephBufferChanged(); 184 } 185 186 return irc; 178 187 } 179 188
Note:
See TracChangeset
for help on using the changeset viewer.