gdb/tui: compare pointer to nullptr, not 0

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.
This commit is contained in:
Andrew Burgess
2021-01-15 20:21:04 +00:00
parent 10f92414d6
commit 5a11fff005
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
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.

View File

@@ -544,9 +544,9 @@ tui_is_window_visible (enum tui_win_type type)
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 ();
}