Ticket #7176: programs_mythfilldatabase-incrementing-bool-deprecated

File programs_mythfilldatabase-incrementing-bool-deprecated, 641 bytes (added by Erik Hovland <erik@…>, 11 years ago)

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

Line 
1C++ is deprecating the incrementing of type bool.
2
3From: Erik Hovland <erik@hovland.org>
4
5
6---
7
8 mythtv/programs/mythfilldatabase/icondata.cpp |    2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11
12diff --git a/mythtv/programs/mythfilldatabase/icondata.cpp b/mythtv/programs/mythfilldatabase/icondata.cpp
13index 15da904..9a4682e 100644
14--- a/mythtv/programs/mythfilldatabase/icondata.cpp
15+++ b/mythtv/programs/mythfilldatabase/icondata.cpp
16@@ -185,7 +185,7 @@ void IconData::UpdateSourceIcons(uint sourceid)
17         return;
18     }
19 
20-    bool count = 0;
21+    unsigned int count = 0;
22     while (query.next())
23     {
24         count++;