Skip to content

Commit

Permalink
Fix postfix ++/-- operators for transport_scan_items_it_t
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Jan 30, 2012
1 parent ffb8467 commit f22a8e5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mythtv/libs/libmythtv/frequencytables.h
Expand Up @@ -214,9 +214,18 @@ class transport_scan_items_it_t
}

transport_scan_items_it_t operator++(int)
{ transport_scan_items_it_t tmp = *this; return ++tmp; }
{
transport_scan_items_it_t tmp = *this;
operator++();
return tmp;
}

transport_scan_items_it_t operator--(int)
{ transport_scan_items_it_t tmp = *this; return --tmp; }
{
transport_scan_items_it_t tmp = *this;
operator--();
return tmp;
}

transport_scan_items_it_t& operator+=(int incr)
{ for (int i = 0; i < incr; i++) ++(*this); return *this; }
Expand Down

0 comments on commit f22a8e5

Please sign in to comment.