diff options
author | Tom Tromey <tromey@adacore.com> | 2022-11-17 09:09:59 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-11-28 13:22:40 -0700 |
commit | 2b141965f2ddef8cf3e79d357768a98c8703a5df (patch) | |
tree | 717f4e830e5feda928ea4202711e3079a3ec4515 /gdb/ui-file.c | |
parent | 19622df10dd5a8d3567e79d0661770029e4fbcfe (diff) | |
download | gdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.zip gdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.tar.gz gdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.tar.bz2 |
Don't let tee_file own a stream
Right now, tee_file owns the second stream it writes to. This is done
for the convenience of the users. In a subsequent patch, this will no
longer be convenient, so this patch moves the responsibility for
ownership to the users of tee_file.
Diffstat (limited to 'gdb/ui-file.c')
-rw-r--r-- | gdb/ui-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 47044e4..3343b6b 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -384,9 +384,9 @@ stderr_file::stderr_file (FILE *stream) -tee_file::tee_file (ui_file *one, ui_file_up &&two) +tee_file::tee_file (ui_file *one, ui_file *two) : m_one (one), - m_two (std::move (two)) + m_two (two) {} tee_file::~tee_file () |