diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-23 20:52:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-04-30 12:59:03 -0600 |
commit | 4904c3c6b69d5c7b5e4682220c1d9503e00a457e (patch) | |
tree | 0227e85efdee038aa6d1ec9f4236e1e01fbbd2dd /gdb/ui-out.h | |
parent | 7c66fffc1f3dae0b921ae3cf8139824804cf0705 (diff) | |
download | gdb-4904c3c6b69d5c7b5e4682220c1d9503e00a457e.zip gdb-4904c3c6b69d5c7b5e4682220c1d9503e00a457e.tar.gz gdb-4904c3c6b69d5c7b5e4682220c1d9503e00a457e.tar.bz2 |
Make do_is_mi_like_p const.
This changes ui_out to make is_mi_like_p and do_is_mi_like_p "const".
ChangeLog
2018-04-30 Tom Tromey <tom@tromey.com>
* ui-out.c: Update.
* cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
* ui-out.h (ui_out::is_mi_like_p): Now const.
(ui_out::do_is_mi_like_p): Now const.
* mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index a415100..81e2e0b 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -119,7 +119,7 @@ class ui_out a hack to encapsulate that test. Once GDB manages to separate the CLI/MI from the core of GDB the problem should just go away .... */ - bool is_mi_like_p (); + bool is_mi_like_p () const; bool query_table_field (int colno, int *width, int *alignment, const char **col_name); @@ -157,7 +157,7 @@ class ui_out /* Set as not MI-like by default. It is overridden in subclasses if necessary. */ - virtual bool do_is_mi_like_p () + virtual bool do_is_mi_like_p () const { return false; } private: |