Skip to content
Commit d47600c8 authored by Tom Tromey's avatar Tom Tromey
Browse files

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: default avatarTom de Vries <tdevries@suse.de>
parent 5c8f9186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment