gdb/tui: compare pointer to nullptr, not 0
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 15 Jan 2021 20:21:04 +0000 (20:21 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 15 Jan 2021 20:23:12 +0000 (20:23 +0000)
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.

gdb/ChangeLog
gdb/tui/tui.c

index a0455e18fb26c11be56e75475a7a4902c25383d2..9ac7b46effd01e91b9cefb436929c53e4b65a586 100644 (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.
index 3a2229db16c30f736d7f882b5c714fde087ebdea..ce8dab3c6425afd1fa0cc58bc5560cf974e43f52 100644 (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 ();
 }
 
This page took 0.027146 seconds and 4 git commands to generate.