]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add stream to buffer_group::output_unit constructor
authorTom Tromey <tom@tromey.com>
Thu, 11 Dec 2025 21:50:18 +0000 (14:50 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 9 Feb 2026 15:09:10 +0000 (08:09 -0700)
commit2f3d3fbd2403261c8afed1e5bd4e1fd005482921
tree2598e1f429f01a4874295677810bdfd7da92709d
parent5844bd5a83304e789d0d6c579705ea40562e1318
Add stream to buffer_group::output_unit constructor

I noticed that when creating a new output_unit, all the calls looked
like:

    m_buffered_output.emplace_back ("", indent).m_stream = stream;

It seems better to simply pass the stream to the constructor.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/buffered-streams.c
gdb/buffered-streams.h