From e5bfdad2136e39da8ca0a3e7f1212d8afaac1b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 17 Nov 2011 18:51:40 +0100 Subject: Use preincrement to advance iterators --- conflictcheck.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'conflictcheck.h') diff --git a/conflictcheck.h b/conflictcheck.h index 6092936..fcc6dcb 100644 --- a/conflictcheck.h +++ b/conflictcheck.h @@ -104,7 +104,7 @@ class cConflictCheckDevice int Priority() const { int prio = -1; - for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); it++) + for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); ++it) prio = max(prio, (*it)->timer->Priority()); return prio; }; @@ -112,7 +112,7 @@ class cConflictCheckDevice bool Receiving() const { return !recTimers.empty(); } bool IsTunedTo (const cChannel* Channel) const { - for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); it++) + for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); ++it) if ((*it)->timer->Channel()->Source() == Channel->Source() && (*it)->timer->Channel()->Transponder() == Channel->Transponder()) return true; @@ -136,7 +136,7 @@ class cConflictCheckDevice cCamSlot *CamSlot(void) const { if (device) return device->CamSlot(); else return NULL;} int Ca() const { - for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); it++) + for(std::set::iterator it = recTimers.begin(); it != recTimers.end(); ++it) return (*it)->timer->Channel()->Ca(); return 0; } -- cgit v1.2.3