Move content_in_use to tui_source_window class
[deliverable/binutils-gdb.git] / gdb / tui / tui-source.c
index 2ca21dcc84507257b5c9b6ef6cf6505260009d5d..2fcb42d929941ea27a7ba7598a7f15f0bac2f18f 100644 (file)
@@ -287,11 +287,10 @@ tui_show_symtab_source (tui_source_window_base *win_info,
 
 /* Answer whether the source is currently displayed in the source
    window.  */
-int
-tui_source_is_displayed (const char *fullname)
+bool
+tui_source_window::showing_source_p (const char *fullname) const
 {
-  return (TUI_SRC_WIN != NULL
-         && TUI_SRC_WIN->content_in_use 
+  return (content_in_use 
          && (filename_cmp (tui_locator_win_info_ptr ()->full_name,
                            fullname) == 0));
 }
This page took 0.024832 seconds and 4 git commands to generate.