Line 0
Link Here
|
|
|
1 |
--- bushnell.cc.orig 2017-01-24 13:08:41 UTC |
2 |
+++ bushnell.cc |
3 |
@@ -135,7 +135,7 @@ bushnell_get_icon_from_name(QString name |
4 |
name = "Waypoint"; |
5 |
} |
6 |
|
7 |
- for (t = bushnell_icons; t->icon > 0; t++) { |
8 |
+ for (t = bushnell_icons; t->icon != nullptr; t++) { |
9 |
if (0 == name.compare(t->icon, Qt::CaseInsensitive)) { |
10 |
return t->symbol; |
11 |
} |
12 |
@@ -147,7 +147,7 @@ static const char* |
13 |
bushnell_get_name_from_symbol(signed int s) |
14 |
{ |
15 |
icon_mapping_t* t; |
16 |
- for (t = bushnell_icons; t->icon > 0; t++) { |
17 |
+ for (t = bushnell_icons; t->icon != nullptr; t++) { |
18 |
if (s == t->symbol) { |
19 |
return t->icon; |
20 |
} |