Changeset 14566 for trunk/FACT++
- Timestamp:
- 11/05/12 18:43:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.h
r14559 r14566 262 262 263 263 const auto it = fInfo.find(service); 264 265 // No subscription for this event available 264 266 if (it==fInfo.end()) 265 267 return make_pair(0, static_cast<EventImp*>(NULL)); 266 268 267 269 EventInfo &info = it->second; 268 return make_pair(info.counter, (EventImp*)&info.data); 270 271 // No event was received yet 272 if (info.counter==0) 273 return make_pair(0, static_cast<EventImp*>(NULL)); 274 275 return make_pair(info.counter-1, (EventImp*)&info.data); 269 276 } 270 277 … … 285 292 EventInfo &info = it->second; 286 293 287 const uint64_t cnt = info.counter++;294 const uint64_t cnt = ++info.counter; 288 295 info.data = static_cast<Event>(evt); 289 296
Note:
See TracChangeset
for help on using the changeset viewer.