Opened 16 years ago

Closed 16 years ago

#7176 closed defect (fixed)

incrementing of bool is deprecated in C++

Reported by: Erik Hovland <erik@…> Owned by: paulh
Priority: trivial Milestone: 0.23
Component: MythTV - Mythfilldatabase Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

bool usage as anything other then a bool is discouraged in C++. But the incrementing and decrementing have been marked deprecated. This happens in one place in mythfilldatabase.

Attachments (1)

programs_mythfilldatabase-incrementing-bool-deprecated (641 bytes ) - added by Erik Hovland <erik@…> 16 years ago.
Switch bool to unsigned int so it can be incremented w/out complaint

Download all attachments as: .zip

Change History (3)

by Erik Hovland <erik@…>, 16 years ago

Switch bool to unsigned int so it can be incremented w/out complaint

comment:1 by paulh, 16 years ago

Milestone: unknown0.23
Owner: changed from stuartm to paulh
Status: newassigned

comment:2 by paulh, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [23199]) Switch count from bool to unsigned int so it can be incremented without complaint. Fixes #7176.

Note: See TracTickets for help on using tickets.