diff options
author | Tom Tromey <tromey@adacore.com> | 2024-08-14 11:22:58 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-08-15 10:14:37 -0600 |
commit | d47600c85d26176cc7030da78f8cfc6e98bcfbbf (patch) | |
tree | 13954325667b4bd371453bed04c99decb1185d93 /gas | |
parent | 5c8f918639f1df77599c50fddfdfe23a2e3cbf35 (diff) | |
download | gdb-d47600c85d26176cc7030da78f8cfc6e98bcfbbf.zip gdb-d47600c85d26176cc7030da78f8cfc6e98bcfbbf.tar.gz gdb-d47600c85d26176cc7030da78f8cfc6e98bcfbbf.tar.bz2 |
Add another constructor to scoped_restore_current_language
While working on something else, I noticed that this is relatively
common:
scoped_restore_current_language save;
set_language (something);
This patch adds a second constructor to
scoped_restore_current_language to simplify this idiom.
Reviewed-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions