diff options
Diffstat (limited to 'lldb/include/lldb/Utility/StreamTee.h')
-rw-r--r-- | lldb/include/lldb/Utility/StreamTee.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lldb/include/lldb/Utility/StreamTee.h b/lldb/include/lldb/Utility/StreamTee.h index b5d3b9679e91..5695586171f3 100644 --- a/lldb/include/lldb/Utility/StreamTee.h +++ b/lldb/include/lldb/Utility/StreamTee.h @@ -19,18 +19,15 @@ namespace lldb_private { class StreamTee : public Stream { public: - StreamTee(bool colors = false) - : Stream(colors), m_streams_mutex(), m_streams() {} + StreamTee(bool colors = false) : Stream(colors) {} - StreamTee(lldb::StreamSP &stream_sp) - : Stream(), m_streams_mutex(), m_streams() { + StreamTee(lldb::StreamSP &stream_sp) { // No need to lock mutex during construction if (stream_sp) m_streams.push_back(stream_sp); } - StreamTee(lldb::StreamSP &stream_sp, lldb::StreamSP &stream_2_sp) - : Stream(), m_streams_mutex(), m_streams() { + StreamTee(lldb::StreamSP &stream_sp, lldb::StreamSP &stream_2_sp) { // No need to lock mutex during construction if (stream_sp) m_streams.push_back(stream_sp); @@ -38,8 +35,7 @@ public: m_streams.push_back(stream_2_sp); } - StreamTee(const StreamTee &rhs) - : Stream(rhs), m_streams_mutex(), m_streams() { + StreamTee(const StreamTee &rhs) : Stream(rhs) { // Don't copy until we lock down "rhs" std::lock_guard<std::recursive_mutex> guard(rhs.m_streams_mutex); m_streams = rhs.m_streams; |