Compare pointers to nullptr, not 0. I also fixed a trailing
whitespace in the same function.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
+2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
+
2021-01-14 Lancelot Six <lsix@lancelotsix.com>
* MAINTAINERS (Write After Approval): Add myself.
if (!tui_active)
return false;
- if (tui_win_list[type] == 0)
+ if (tui_win_list[type] == nullptr)
return false;
-
+
return tui_win_list[type]->is_visible ();
}