diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 14:10:25 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-16 14:10:25 -0600 |
commit | 431b3eadc4f842231d404e7e995ae5c1dbd28414 (patch) | |
tree | 316b95dfb23476a648ad6a645ef424be670aa690 /gdb/source-cache.c | |
parent | d04b44a16cdfde95de487bcedd541c6e71d82676 (diff) | |
download | gdb-431b3eadc4f842231d404e7e995ae5c1dbd28414.zip gdb-431b3eadc4f842231d404e7e995ae5c1dbd28414.tar.gz gdb-431b3eadc4f842231d404e7e995ae5c1dbd28414.tar.bz2 |
Don't cast a tui_win_info directly to tui_gen_win_info
I found a few spots that directly cast a tui_win_info to a
tui_gen_win_info. However, I think it's a bit better here to take the
address of the "generic" member. As far as I know, nothing relies on
being able to downcast here, so this gives us the freedom to rearrange
the structure.
gdb/ChangeLog
2019-06-16 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
(make_all_visible): Use address of member.
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions