forked from Imagelibrary/binutils-gdb
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:
@@ -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.
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user