&& m_buffered_output.back ().m_msg.back () != '\n')
m_buffered_output.back ().m_msg.append (msg);
else
- m_buffered_output.emplace_back (msg).m_stream = stream;
+ m_buffered_output.emplace_back (stream, msg);
prev = cur + 1;
}
}
void
buffer_group::wrap_here (int indent, ui_file *stream)
{
- m_buffered_output.emplace_back ("", indent).m_stream = stream;
+ m_buffered_output.emplace_back (stream, "", indent);
}
/* See buffered-streams.h. */
void
buffer_group::flush_here (ui_file *stream)
{
- m_buffered_output.emplace_back ("", -1, true).m_stream = stream;
+ m_buffered_output.emplace_back (stream, "", -1, true);
}
/* See buffered-streams.h. */
struct output_unit
{
- output_unit (std::string msg, int wrap_hint = -1, bool flush = false)
- : m_msg (msg), m_wrap_hint (wrap_hint), m_flush (flush)
+ output_unit (ui_file *stream, std::string msg, int wrap_hint = -1,
+ bool flush = false)
+ : m_stream (stream), m_msg (msg), m_wrap_hint (wrap_hint),
+ m_flush (flush)
{}
/* Write contents of this output_unit to the underlying stream. */